Pdf. NET Memory Database Usage Summary

Source: Internet
Author: User
Tags server memory

Deep Blue Dr. Pdf.net Data Development Framework provides a recommended memory database functionality, specific features I will not say, can see the doctor's Blog "Counter switch: When the generic method encounters abstract class----My" Memory Database "birth in mind.

I will use this memory database, mainly recently in a public platform related projects, in the completion of an operation, may have to wait for multiple user input, the process needs to put the data in memory, but I use the structure of the relatively complex, the design of their own more trouble, If you can use the existing code is good, suddenly think of the doctor mentioned in the memory database, and then find out to see, and then try to use a bit, found that it is suitable for my needs, The doctor provides this memory database is specially designed for pdf.net, the use is very convenient, in addition to the memory of the convenient use of pdf.net memory database, but encountered some data can not be uploaded, but also temporarily save the data to the local, and so can upload data and then save to the local data re-loaded into memory.

One of the scenarios I used in the project was that the user clicked on a button for the service number, I created an object for the user to put into the memory database, the user chose different functions, I would deposit the corresponding data in the object belonging to this user, PDF. NET memory database provides a very useful query function, I use the user's OpenID as the object ID, no matter how many functions the user calls, input how long, the server memory database has only a unique object corresponding to the user, to help users complete a variety of operations, such as user operations completed or time-out, I will delete this corresponding object in the memory database, which will save a lot of memory. Because most of the time I don't need to save the data locally, it's still very efficient to use a memory database. If you need to save the data locally, PDF. NET in-memory database also provides the ability to save to local, easy to use. And then this memory database is based on pdf.net, if your system itself is based on pdf.net, it will greatly reduce your workload.

Well, the specific use or look at the doctor's blog, the end!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.