Caching abstractions for in-memory cache and distributed cache. Commonly Used Types: Microsoft.Extensions.Caching.Distributed.IDistributedCache Microsoft.Extensions.Caching.Memory.IMemoryCache
Install
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
About
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.
Key Features
- Interfaces for building and using in-memory and distributed caches.
How to Use
This package is typically used with an implementation of the caching abstractions, such as Microsoft.Extensions.Caching.Memory or Microsoft.Extensions.Caching.SqlServer.
Main Types
The main types provided by this library are:
Microsoft.Extensions.Caching.Abstractions.ICacheEntryMicrosoft.Extensions.Caching.Abstractions.IMemoryCacheMicrosoft.Extensions.Caching.Abstractions.IDistributedCache
Additional Documentation
- Conceptual documentation
- API documentation
Related Packages
- In-memory caching: Microsoft.Extensions.Caching.Memory
- SQL Server caching: Microsoft.Extensions.Caching.SqlServer
- Redis caching: Microsoft.Extensions.Caching.StackExchangeRedis
Feedback & Contributing
Microsoft.Extensions.Caching.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.