Provides 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.ICacheEntry
Microsoft.Extensions.Caching.Abstractions.IMemoryCache
Microsoft.Extensions.Caching.Abstractions.IDistributedCache
Microsoft.Extensions.Caching.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.