Microsoft.Extensions.Caching.Abstractions 9.0.9

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.Caching.Abstractions --version 9.0.9
                    
NuGet\Install-Package Microsoft.Extensions.Caching.Abstractions -Version 9.0.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.9" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Extensions.Caching.Abstractions --version 9.0.9
                    
#r "nuget: Microsoft.Extensions.Caching.Abstractions, 9.0.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Extensions.Caching.Abstractions@9.0.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Extensions.Caching.Abstractions&version=9.0.9
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Caching.Abstractions&version=9.0.9
                    
Install as a Cake Tool

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

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2.1K)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Caching.Abstractions:

Package Downloads
Microsoft.Extensions.Caching.Memory

In-memory cache implementation of Microsoft.Extensions.Caching.Memory.IMemoryCache.

Microsoft.Extensions.Identity.Stores

ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. ASP.NET Core Identity allows you to add login features to your application and makes it easy to customize data about the logged in user. This package was built from the source code at https://github.com/dotnet/dotnet/tree/2db1f5ee2bdda2e8d873769325fabede32e420e0

Microsoft.Extensions.Caching.StackExchangeRedis

Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using Redis. This package was built from the source code at https://github.com/dotnet/dotnet/tree/2db1f5ee2bdda2e8d873769325fabede32e420e0

Microsoft.Extensions.Caching.SqlServer

Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using Microsoft SQL Server. This package was built from the source code at https://github.com/dotnet/dotnet/tree/2db1f5ee2bdda2e8d873769325fabede32e420e0

Microsoft.AspNetCore.Session

ASP.NET Core session state middleware.

GitHub repositories (151)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Caching.Abstractions:

Repository Stars
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
DotNetNext/SqlSugar
.Net aot ORM SqlServer ORM Mongodb ORM MySql 瀚高 Postgresql ORM DB2 Hana 高斯 Duckdb C# VB.NET Sqlite ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
umbraco/Umbraco-CMS
Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
protobuf-net/protobuf-net
Protocol Buffers library for idiomatic .NET
opserver/Opserver
Stack Exchange's Monitoring System
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
ravendb/ravendb
ACID Document Database
Megabit/Blazorise
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
stefanprodan/AspNetCoreRateLimit
ASP.NET Core rate limiting middleware
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
dotnetcore/osharp
OSharp是一个基于.Net6.0的快速开发框架,框架对 AspNetCore 的配置、依赖注入、日志、缓存、实体框架、Mvc(WebApi)、身份认证、功能权限、数据权限等模块进行更高一级的自动化封装,并规范了一套业务实现的代码结构与操作流程,使 .Net 框架更易于应用到实际项目开发中。
Squidex/squidex
Headless CMS and Content Managment Hub
WalletWasabi/WalletWasabi
Open-source, non-custodial, privacy preserving Bitcoin wallet for Windows, Linux, and Mac.
zzzprojects/EntityFramework-Plus
Entity Framework Plus extends your DbContext with must-haves features: Include Filter, Auditing, Caching, Query Future, Batch Delete, Batch Update, and more
reactjs/React.NET
.NET library for JSX compilation and server-side rendering of React components
PiranhaCMS/piranha.core
Piranha CMS is the friendly editor-focused CMS for .NET that can be used both as an integrated CMS or as a headless API.
dotnetcore/EasyCaching
:boom: EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
2881099/csredis
.NET Core or .NET Framework 4.0+ client for Redis and Redis Sentinel (2.8) and Cluster. Includes both synchronous and asynchronous clients.
ErsatzTV/ErsatzTV
Open-source platform that transforms your personal media library into live, custom TV channels.
ArgoZhang/BootstrapAdmin
BootstrapAdmin - Free Premium Admin control Panel Based On Bootstrap 4.x
Version Downloads Last Updated
10.0.0-rc.1.25451.107 46,034 9/9/2025
10.0.0-preview.7.25380.108 39,342 8/12/2025
10.0.0-preview.6.25358.103 17,434 7/15/2025
10.0.0-preview.5.25277.114 46,851 6/6/2025
10.0.0-preview.4.25258.110 39,441 5/12/2025
10.0.0-preview.3.25171.5 34,056 4/10/2025
10.0.0-preview.2.25163.2 12,889 3/18/2025
10.0.0-preview.1.25080.5 106,922 2/25/2025
9.0.9 2,947,051 9/9/2025
9.0.8 6,594,615 8/4/2025
9.0.7 6,171,284 7/8/2025
9.0.6 7,827,163 6/10/2025
9.0.5 9,651,024 5/13/2025
9.0.4 16,057,714 4/8/2025
9.0.3 10,284,200 3/11/2025
9.0.2 13,695,913 2/11/2025
9.0.1 17,856,761 1/14/2025
9.0.0 38,099,840 11/12/2024
9.0.0-rc.2.24473.5 752,995 10/8/2024
9.0.0-rc.1.24431.7 284,462 9/10/2024
9.0.0-preview.7.24405.7 1,007,022 8/13/2024
9.0.0-preview.6.24327.7 311,833 7/9/2024
9.0.0-preview.5.24306.7 126,144 6/11/2024
9.0.0-preview.4.24266.19 93,923 5/21/2024
9.0.0-preview.3.24172.9 226,068 4/11/2024
9.0.0-preview.2.24128.5 115,187 3/12/2024
9.0.0-preview.1.24080.9 149,176 2/13/2024
8.0.0 302,997,825 11/14/2023
8.0.0-rc.2.23479.6 1,711,313 10/10/2023
8.0.0-rc.1.23419.4 448,833 9/12/2023
8.0.0-preview.7.23375.6 660,570 8/8/2023
8.0.0-preview.6.23329.7 276,314 7/11/2023
8.0.0-preview.5.23280.8 224,881 6/13/2023
8.0.0-preview.4.23259.5 428,229 5/16/2023
8.0.0-preview.3.23174.8 327,917 4/11/2023
8.0.0-preview.2.23128.3 223,089 3/14/2023
8.0.0-preview.1.23110.8 238,703 2/21/2023
7.0.0 189,221,540 11/7/2022
7.0.0-rc.2.22472.3 301,246 10/11/2022
7.0.0-rc.1.22426.10 374,768 9/14/2022
7.0.0-preview.7.22375.6 134,846 8/9/2022
7.0.0-preview.6.22324.4 108,954 7/12/2022
7.0.0-preview.5.22301.12 96,505 6/14/2022
7.0.0-preview.4.22229.4 112,123 5/10/2022
7.0.0-preview.3.22175.4 96,279 4/13/2022
7.0.0-preview.2.22152.2 125,295 3/14/2022
7.0.0-preview.1.22076.8 89,112 2/17/2022
6.0.1 3,801,789 11/12/2024
6.0.0 381,583,144 11/8/2021
6.0.0-rc.2.21480.5 568,489 10/12/2021
6.0.0-rc.1.21451.13 302,156 9/14/2021
6.0.0-preview.7.21377.19 117,748 8/10/2021
6.0.0-preview.6.21352.12 58,393 7/14/2021
6.0.0-preview.5.21301.5 225,712 6/15/2021
6.0.0-preview.4.21253.7 139,996 5/24/2021
6.0.0-preview.3.21201.4 118,005 4/8/2021
6.0.0-preview.2.21154.6 83,889 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21102.12 386,212 2/12/2021 6.0.0-preview.1.21102.12 is deprecated because it is no longer maintained.
5.0.0 215,403,803 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 402,677 10/13/2020 5.0.0-rc.2.20475.5 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.14 347,978 9/14/2020 5.0.0-rc.1.20451.14 is deprecated because it is no longer maintained.
5.0.0-preview.8.20407.11 213,515 8/25/2020 5.0.0-preview.8.20407.11 is deprecated because it is no longer maintained.
5.0.0-preview.7.20364.11 133,910 7/21/2020 5.0.0-preview.7.20364.11 is deprecated because it is no longer maintained.
5.0.0-preview.6.20305.6 85,643 6/25/2020 5.0.0-preview.6.20305.6 is deprecated because it is no longer maintained.
5.0.0-preview.5.20278.1 22,866 6/10/2020 5.0.0-preview.5.20278.1 is deprecated because it is no longer maintained.
5.0.0-preview.4.20251.6 255,102 5/18/2020 5.0.0-preview.4.20251.6 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.2 136,363 4/23/2020 5.0.0-preview.3.20215.2 is deprecated because it is no longer maintained.
5.0.0-preview.2.20160.3 119,270 4/2/2020 5.0.0-preview.2.20160.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20120.4 77,267 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 9,690,128 12/13/2022
3.1.31 2,122,315 11/8/2022
3.1.30 1,941,307 10/11/2022
3.1.29 1,965,307 9/13/2022
3.1.28 1,229,711 8/9/2022
3.1.27 1,155,292 7/12/2022
3.1.26 940,657 6/14/2022
3.1.25 1,603,324 5/10/2022
3.1.24 1,097,413 4/11/2022
3.1.23 1,959,149 3/8/2022
3.1.22 6,433,398 12/14/2021
3.1.21 4,331,335 11/7/2021
3.1.20 2,754,557 10/11/2021
3.1.19 3,240,023 9/14/2021
3.1.18 6,807,935 8/10/2021
3.1.17 3,297,710 7/13/2021
3.1.16 4,689,456 6/8/2021
3.1.15 4,376,805 5/11/2021
3.1.14 5,593,907 4/6/2021
3.1.13 6,601,707 3/9/2021
3.1.12 5,274,144 2/9/2021
3.1.11 7,492,881 1/12/2021
3.1.10 14,072,741 11/9/2020
3.1.9 21,759,631 10/13/2020
3.1.8 38,428,050 9/8/2020
3.1.7 20,274,627 8/11/2020
3.1.6 20,046,357 7/14/2020
3.1.5 20,777,876 6/9/2020
3.1.4 24,037,912 5/12/2020
3.1.3 36,706,238 3/24/2020
3.1.2 18,559,987 2/18/2020
3.1.1 27,909,172 1/14/2020
3.1.0 56,289,389 12/3/2019
3.1.0-preview3.19553.2 169,007 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 36,004 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 786,709 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 452,526 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 183,660 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 2,569,844 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 46,236,827 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 48,392 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 1,398,002 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 435,782 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 102,129 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 185,311 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 683,065 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 24,397 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 225,760 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 34,600 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 54,545 12/3/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.0 208,642,075 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 264,824 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 194,007 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 116,448 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.23 1,429,429 10/13/2020
2.1.2 87,670,839 8/21/2018
2.1.1 53,572,124 6/18/2018
2.1.0 84,598,102 5/29/2018
2.1.0-rc1-final 262,322 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 252,574 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 407,480 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.2 12,218,937 5/7/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 17,832,465 3/13/2018 2.0.1 is deprecated because it is no longer maintained.
2.0.0 120,546,099 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 146,445 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 1,087,016 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.2 9,494,454 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 18,718,111 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 11,052,390 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 81,351 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.2 4,612,021 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 720,395 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 321,736,683 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 311,301 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.
1.0.0-rc1-final 527,649 11/18/2015 1.0.0-rc1-final is deprecated because it is no longer maintained.