Common.Cache.Redis
1.3.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Common.Cache.Redis --version 1.3.1
NuGet\Install-Package Common.Cache.Redis -Version 1.3.1
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="Common.Cache.Redis" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Common.Cache.Redis" Version="1.3.1" />
<PackageReference Include="Common.Cache.Redis" />
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 Common.Cache.Redis --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Common.Cache.Redis, 1.3.1"
#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 Common.Cache.Redis@1.3.1
#: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=Common.Cache.Redis&version=1.3.1
#tool nuget:?package=Common.Cache.Redis&version=1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Common.Cache.Redis
操作例子
首先需要安装nuget包,直接安装最新版本即可
services.AddRedisCacheService(x =>
{
x.ConnectionString = "localhost:6379,password=123456,DefaultDatabase=0";
x.KeyPrefix = "test";
});
然后在需要使用的地方进行注入ICacheProvider就可以使用了
版本更新记录
- 1.3.1
- 更新异常信息输出
- 1.3.0
- 更新正式包
- 1.2.0-beta9
- 引用.Net10正式包
- 1.2.0-beta8
- 适配.net10
- 1.2.0-beta7
- 设置不缓存空值的时候问题修复
- 1.2.0-beta6
- 增加可设置是否存储空字符串或者空集合选项,默认存储
- 1.2.0-beta5
- 修复GetOrCreateAsync读取不到缓存还存储redis的问题
- 1.2.0-beta4
- 支持.Net9
- 增加扩展方法AddRedisCacheStore
- 1.2.0-beta-3
- 修改方法KeyDeleteInBatchAsync为RemoveMatchKeyAsync
- 1.2.0-beta2
- 依赖基类包:Azrng.Cache.Core
- 优化代码
- 1.2.0-beta1
- 支持netstandard2.1;net6.0;net7.0;net8.0
- 将公共的缓存接口定义封装
- 1.1.1
- 修改redis操作管理类
- 1.1.0
- 更新版本为5.0
- 1.0.0
- 3.1版本的redis公共库
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Azrng.Cache.Core (>= 0.0.3)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.9.32)
-
net6.0
- Azrng.Cache.Core (>= 0.0.3)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.9.32)
-
net7.0
- Azrng.Cache.Core (>= 0.0.3)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.9.32)
-
net8.0
- Azrng.Cache.Core (>= 0.0.3)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.9.32)
-
net9.0
- Azrng.Cache.Core (>= 0.0.3)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.9.32)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0 | 103 | 1/29/2026 |
| 1.3.2 | 100 | 1/27/2026 |
| 1.3.1 | 296 | 12/17/2025 |
| 1.3.0 | 379 | 11/30/2025 |
| 1.2.0-beta9 | 301 | 11/12/2025 |
| 1.2.0-beta8 | 168 | 11/6/2025 |
| 1.2.0-beta7 | 281 | 10/9/2025 |
| 1.2.0-beta6 | 178 | 10/8/2025 |
| 1.2.0-beta5 | 289 | 8/28/2025 |
| 1.2.0-beta4 | 197 | 7/14/2025 |
| 1.2.0-beta3 | 182 | 6/5/2024 |
| 1.2.0-beta2 | 196 | 4/4/2024 |
| 1.2.0-beta1 | 255 | 12/28/2023 |
| 1.1.0 | 2,386 | 11/11/2020 |
| 1.0.0 | 603 | 10/9/2020 |