![]() ![]() ICacheEntry.AbsoluteExpirationRelativeToNow.The consumer of the cache has control over both sliding and absolute expirations: The in-memory cache solution is great for apps that run on a single server, where all the cached data rents memory in the app's process.įor multi-server caching scenarios, consider the Distributed caching approach as an alternative to in-memory caching. Entries within the cache are represented by the ICacheEntry, and can be any object. The current implementation of the IMemor圜ache is a wrapper around the ConcurrentDictionary, exposing a feature-rich API. In this section, you'll learn about the package. All references to Memor圜ache are within the namespace.Īll of the Microsoft.Extensions.* packages come dependency injection (DI) ready, both the IMemor圜ache and IDistributedCache interfaces can be used as services. While this article focuses on caching, it doesn't include the NuGet package. NET, one in the namespace and the other in the namespace: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |