EaCloud.Redis
9.0.1.1
dotnet add package EaCloud.Redis --version 9.0.1.1
NuGet\Install-Package EaCloud.Redis -Version 9.0.1.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="EaCloud.Redis" Version="9.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EaCloud.Redis" Version="9.0.1.1" />
<PackageReference Include="EaCloud.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 EaCloud.Redis --version 9.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EaCloud.Redis, 9.0.1.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 EaCloud.Redis@9.0.1.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=EaCloud.Redis&version=9.0.1.1
#tool nuget:?package=EaCloud.Redis&version=9.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EaCloud Redis 缓存组件
说明
EaCloud Redis 缓存组件,封装基于 Redis 客户端的缓存实现。
单机用法
如果只是单台服务器使用Redis,可按照如下配置方式使用:
- 通过nuget引用
EaCloud.Redis程序集
Install-Package EaCloud.Redis
- 在
appsettings.json中 的EaCloud节点下添加如下配置节点
{
//缓存选项信息
"Redis": {
"Configuration": "localhost", //Redis连接配置(本地)
//"Configuration": "127.0.0.1:6379,password=xxxxx", //Redis连接配置(远程)
"InstanceName": "EaCloudRedis", //Redis实例名称
"Enabled": false //是否启用
},
}
Configuration本地配置无需密码,只要填写localhost,如远程配置需密码,参考格式127.0.0.1:6379,password=xxxxx。InstanceName建议以:结尾。- 如果要禁用Redis缓存功能,设置上面的配置
Enabled: false即可。当启用Redis时,会自动清除已有的IDistributedCache分布式缓存实现。
集群用法
如果要使用多服务器使用Redis集群,可通过继承基类RedisPackCore重写,给RedisCacheOptions.ConfigurationOptions属性赋值即可。
交流
![]() |
![]() |
|---|---|
| QQ群号:863605868 | 微信号:SeonHu |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- EaCloud (>= 9.0.1.1)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 9.0.10)
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 |
|---|---|---|
| 9.0.1.1 | 300 | 10/22/2025 |
| 9.0.0.9 | 290 | 8/12/2025 |
| 9.0.0.8 | 207 | 7/5/2025 |
| 9.0.0.7 | 319 | 6/25/2025 |
| 9.0.0.6 | 335 | 6/18/2025 |
| 9.0.0.5 | 288 | 6/14/2025 |
| 9.0.0.4 | 307 | 5/8/2025 |
| 9.0.0.3 | 317 | 4/23/2025 |
| 9.0.0.2 | 311 | 4/11/2025 |
| 9.0.0.1 | 309 | 3/21/2025 |
| 8.0.1.9 | 274 | 11/15/2024 |
| 8.0.1.8 | 257 | 11/13/2024 |
| 8.0.1.7 | 277 | 10/9/2024 |
| 8.0.1.6 | 280 | 9/29/2024 |
| 8.0.1.5 | 269 | 9/13/2024 |
| 8.0.1.4 | 282 | 8/10/2024 |
| 8.0.1.3 | 280 | 8/7/2024 |
| 8.0.1.2 | 285 | 8/7/2024 |
| 8.0.1.1 | 277 | 8/7/2024 |
| 8.0.0.9 | 281 | 8/7/2024 |
Loading failed

