Caching abstractions for in-memory cache and distributed cache. Commonly Used Types: Microsoft.Extensions.Caching.Distributed.IDistributedCache Microsoft.Extensions.Caching.Memory.IMemoryCache
$ dotnet add package Microsoft.Extensions.Caching.AbstractionsProvides the abstractions to create and use in-memory and distributed caching in your applications.
This library defines how in-memory and distributed caches should be implemented; it doesn’t contain any cache implementation. With the abstractions provided in this library, various types of caches can be built and used interchangeably, whether the data is kept in memory, in files, or even across a network.
This package is typically used with an implementation of the caching abstractions, such as Microsoft.Extensions.Caching.Memory or Microsoft.Extensions.Caching.SqlServer.
The main types provided by this library are:
Microsoft.Extensions.Caching.Abstractions.ICacheEntryMicrosoft.Extensions.Caching.Abstractions.IMemoryCacheMicrosoft.Extensions.Caching.Abstractions.IDistributedCacheMicrosoft.Extensions.Caching.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.