MicroCloud.Redis
8.0.2.8
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 MicroCloud.Redis --version 8.0.2.8
NuGet\Install-Package MicroCloud.Redis -Version 8.0.2.8
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="MicroCloud.Redis" Version="8.0.2.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MicroCloud.Redis --version 8.0.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MicroCloud.Redis, 8.0.2.8"
#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.
// Install MicroCloud.Redis as a Cake Addin #addin nuget:?package=MicroCloud.Redis&version=8.0.2.8 // Install MicroCloud.Redis as a Cake Tool #tool nuget:?package=MicroCloud.Redis&version=8.0.2.8
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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- MicroCloud (>= 8.0.2.8)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.8)
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 |
---|---|---|
8.0.3.1 | 85 | 9/9/2024 |
8.0.2.9 | 83 | 9/5/2024 |
8.0.2.8 | 92 | 8/31/2024 |
8.0.2.7 | 86 | 8/31/2024 |
8.0.2.6 | 111 | 8/21/2024 |
8.0.2.5 | 125 | 8/21/2024 |
8.0.2.4 | 100 | 8/12/2024 |
8.0.2.3 | 103 | 8/8/2024 |
8.0.2.2 | 94 | 7/14/2024 |
8.0.2.1 | 92 | 6/7/2024 |
8.0.1.9 | 94 | 6/6/2024 |
8.0.1.8 | 84 | 6/6/2024 |
8.0.1.7 | 98 | 5/15/2024 |
8.0.1.6 | 85 | 5/15/2024 |
8.0.1.5 | 103 | 5/15/2024 |
8.0.1.4 | 91 | 5/14/2024 |
8.0.1.3 | 90 | 5/10/2024 |
8.0.1.2 | 96 | 5/8/2024 |
8.0.1.1 | 108 | 5/7/2024 |
8.0.0.9 | 94 | 5/1/2024 |
8.0.0.8 | 109 | 5/1/2024 |
8.0.0.7 | 114 | 4/30/2024 |
8.0.0.5 | 114 | 4/19/2024 |
7.2.0.1 | 268 | 10/26/2023 |
7.1.2.9 | 116 | 11/7/2023 |
7.1.2.8 | 129 | 10/19/2023 |
7.1.2.7 | 123 | 10/19/2023 |
7.1.2.6 | 114 | 10/18/2023 |
7.1.2.5 | 126 | 9/20/2023 |
7.1.2.4 | 125 | 9/13/2023 |
7.1.2.3 | 123 | 9/13/2023 |
7.1.2.2 | 129 | 9/12/2023 |
7.1.2.1 | 152 | 9/4/2023 |
7.1.1.9 | 131 | 8/31/2023 |
7.1.1.6 | 146 | 8/29/2023 |
7.1.1.5 | 160 | 8/25/2023 |
7.1.1.4 | 146 | 8/25/2023 |
7.1.1.3 | 130 | 8/25/2023 |
7.1.1.2 | 124 | 8/24/2023 |
7.1.1.1 | 132 | 8/24/2023 |
7.0.3.1 | 148 | 8/24/2023 |
7.0.2.7 | 137 | 5/12/2023 |
7.0.2.6 | 135 | 5/11/2023 |
7.0.1.7 | 151 | 5/9/2023 |
7.0.1.6 | 157 | 5/9/2023 |