Skip to main content
.NETFramework4.6.2net6.0net7.0net8.0.NETStandard2.0

Caching abstractions for in-memory cache and distributed cache. Commonly Used Types: Microsoft.Extensions.Caching.Distributed.IDistributedCache Microsoft.Extensions.Caching.Memory.IMemoryCache

Published
Nov 14, 2023
2y ago
Total Downloads
3.9B
3,876,273,232

Install

dotnet add package Microsoft.Extensions.Caching.Abstractions --version 8.0.0
ProductVersions
.NET
net6.0net7.0net8.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

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.ICacheEntry
  • Microsoft.Extensions.Caching.Abstractions.IMemoryCache
  • Microsoft.Extensions.Caching.Abstractions.IDistributedCache

Additional Documentation

Related Packages

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

No structural changes between v8.0.0-rc.2.23479.6 and v8.0.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.