There are a number of distributing caching options in .NET.
Ignoring the distributed aspect of our desired cache for the minute we focus on the inbuilt MemoryCache.
For an in-process, in-memory cache, one option is to use MemoryCache (System.Runtime.Caching). Caching data types were introduced in .NET 4. A CacheItemPolicy dictates how long objects remain in the cache and what the eviction policy is.
Some more flexible and specialized options are:
Microsoft.Extensions.Caching.SqlServer
No comments:
Post a Comment