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