Cache (cache )~ Opening

Source: Internet
Author: User
Gossip

I have been writing this article for a long time, but I always feel that my internal skills are not enough. I always feel that I need to have enough practice to write this article in the field of programming, you must have a good understanding of the specific fields before writing them out. Now, I feel like I have the ability to write such articles. So I am eager to write this article, share it with you, and share my fans!

Cache: cache is widely used and has many implementation methods. You can use files and memory to implement cache, and there are also many caching methods. For a Web page, you can cache its page content (HTML) or its data set (Dataset). These two methods are applicable to different scenarios. for caching that needs to be triggered actively, it may need to use the cache of datasets, but an infrequently updated page can be directly cached as an HTML file, it usually uses httpmodel to directly respond to users when making Web requests. This article describes the caching methods.

Cache terminology

Get: Get cache, direct return, no actual data query and return, put operation at the same time

Put: Insert a cache. When get cannot get the cache, put a cache directly.

Delete: deletes the cache. when data is updated, delete the cache.

Cache (cache )~ Directory

The first HTTP model implements the file-level cache of the webpage (updated by the expiration time)

Second, cache of partialview in MVC (updated by expiration time)

Configuration File Cache occupied by the third round (controllable update)

Fourth, Microsoft. Practices. enterpriselibrary. caching implements in-memory data cache (controllable update)

Fifth, Lucene implements the dataset file dataset cache and full-text retrieval force (by updating the expiration time, it occupies the background for controllable updates)

Sixth, nosql caches ranking data. redis caches memory and file datasets (communicates with the redis server through socket to achieve controllable updates)

End sentence

I hope everyone can compete in the software development field!

Cache (cache )~ Opening

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.