EaCloud.Redis 7.0.7.4

dotnet add package EaCloud.Redis --version 7.0.7.4
NuGet\Install-Package EaCloud.Redis -Version 7.0.7.4
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="7.0.7.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.Redis --version 7.0.7.4
#r "nuget: EaCloud.Redis, 7.0.7.4"
#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 EaCloud.Redis as a Cake Addin
#addin nuget:?package=EaCloud.Redis&version=7.0.7.4

// Install EaCloud.Redis as a Cake Tool
#tool nuget:?package=EaCloud.Redis&version=7.0.7.4

EaCloud Redis 缓存组件

Member project of EaCloud Team NuGet Badge GitHub license

说明

EaCloud Redis 缓存组件,封装基于 Redis 客户端的缓存实现。

单机用法

如果只是单台服务器使用Redis,可按照如下配置方式使用:

  1. 通过nuget引用 EaCloud.Redis 程序集
Install-Package EaCloud.Redis
  1. appsettings.json 中 的 EaCloud 节点下添加如下配置节点
{
    //缓存选项信息
    "Redis": {
      "Configuration": "localhost", //Redis连接配置(本地)
      //"Configuration": "127.0.0.1:6379,password=xxxxx",  //Redis连接配置(远程)
      "InstanceName": "EaCloudRedis", //Redis实例名称
      "Enabled": false //是否启用
    },
}
  1. Configuration本地配置无需密码,只要填写localhost,如远程配置需密码,参考格式127.0.0.1:6379,password=xxxxx
  2. InstanceName建议以:结尾。
  3. 如果要禁用Redis缓存功能,设置上面的配置Enabled: false即可。当启用Redis时,会自动清除已有的IDistributedCache分布式缓存实现。

集群用法

如果要使用多服务器使用Redis集群,可通过继承基类RedisPackCore重写,给RedisCacheOptions.ConfigurationOptions属性赋值即可。

交流

QQ WeChat
QQ群号:863605868 微信号:SeonHu
Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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.

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
7.0.7.4 68 4/28/2024
7.0.7.3 73 4/26/2024
7.0.7.2 75 4/21/2024
7.0.7.1 68 4/19/2024
7.0.6.9 102 4/15/2024
7.0.6.8 69 4/11/2024
7.0.6.7 75 4/11/2024
7.0.6.6 81 4/7/2024
7.0.6.5 81 4/7/2024
7.0.6.4 80 4/7/2024
7.0.6.3 85 4/7/2024
7.0.6.2 72 4/3/2024
7.0.6.1 83 4/3/2024
7.0.5.9 74 3/27/2024
7.0.5.8 88 3/23/2024
7.0.5.7 77 3/17/2024
7.0.5.6 74 3/17/2024
7.0.5.5 90 3/16/2024
7.0.5.4 75 3/13/2024
7.0.5.3 81 3/13/2024
7.0.5.2 83 3/6/2024
7.0.5.1 83 2/21/2024
7.0.4.9 89 2/21/2024
7.0.4.8 69 2/18/2024
7.0.4.7 86 2/5/2024
7.0.4.6 81 2/1/2024
7.0.4.5 86 1/26/2024
7.0.4.4 89 1/22/2024
7.0.4.3 94 1/17/2024
7.0.4.2 75 1/16/2024
7.0.4.1 80 1/16/2024
7.0.3.9 81 1/15/2024
7.0.3.8 118 1/3/2024
7.0.3.7 107 12/28/2023
7.0.3.6 105 12/27/2023
7.0.3.5 110 12/22/2023
7.0.3.4 90 12/22/2023
7.0.3.3 105 12/13/2023
7.0.3.2 85 12/13/2023
7.0.3.1 96 12/12/2023
7.0.2.9 127 11/26/2023
7.0.2.8 109 11/26/2023
7.0.2.7 135 9/26/2023
7.0.2.6 117 9/25/2023
7.0.2.5 106 9/15/2023
7.0.2.4 119 7/27/2023
7.0.2.3 145 7/22/2023
7.0.2.2 132 7/22/2023
7.0.2.1 129 7/21/2023
7.0.1.9 140 7/21/2023
7.0.1.8 128 7/20/2023
7.0.1.7 128 7/20/2023
7.0.1.6 169 7/4/2023
7.0.1.5 155 6/16/2023
7.0.1.4 149 6/13/2023
7.0.1.3 163 6/8/2023
7.0.1.2 247 6/2/2023
7.0.1.1 169 5/11/2023
7.0.0.9 164 5/10/2023
7.0.0.8 164 5/10/2023
7.0.0.7 177 4/19/2023
7.0.0.6 184 4/18/2023
7.0.0.5 222 3/27/2023
7.0.0.4 225 3/23/2023
7.0.0.3 293 1/31/2023
7.0.0.2 271 1/30/2023
7.0.0.1 309 12/24/2022
6.0.2.5 335 11/16/2022
6.0.2.4 347 11/10/2022
6.0.2.3 409 10/11/2022
6.0.2.2 434 9/23/2022
6.0.2.1 449 8/14/2022
6.0.1.9 436 8/13/2022
6.0.1.8 422 6/6/2022
6.0.1.7 444 5/26/2022
6.0.1.6 462 5/11/2022
6.0.1.5 444 5/10/2022
6.0.1.4 475 4/8/2022
6.0.1.3 476 4/2/2022
6.0.1.2 453 4/2/2022
6.0.1.1 465 3/18/2022
6.0.0.9 482 3/5/2022
6.0.0.8 462 2/19/2022
6.0.0.7 456 2/15/2022
6.0.0.6 461 2/14/2022
6.0.0.5 475 1/28/2022
6.0.0.4 475 1/13/2022
6.0.0.3 468 1/12/2022
6.0.0.2 315 12/21/2021
6.0.0.1 330 12/13/2021
5.0.3.7 416 10/16/2021
5.0.3.6 345 10/14/2021
5.0.3.5 341 10/13/2021
5.0.3.4 382 10/8/2021
5.0.3.3 352 9/17/2021
5.0.3.2 375 9/16/2021
5.0.3.1 332 9/15/2021
5.0.2.9 352 9/15/2021
5.0.2.8 357 8/31/2021
5.0.2.7 376 8/28/2021
5.0.2.6 361 8/22/2021
5.0.2.5 338 8/13/2021
5.0.2.4 346 8/13/2021
5.0.2.3 404 7/8/2021
5.0.2.2 372 7/1/2021
5.0.2.1 395 6/16/2021
5.0.1.9 359 5/12/2021
5.0.1.8 382 5/9/2021
5.0.1.7 419 5/7/2021
5.0.1.6 391 4/17/2021
5.0.1.5 338 4/16/2021
5.0.1.4 355 4/15/2021
5.0.1.3 345 4/15/2021
5.0.1.2 370 4/12/2021
5.0.1.1 357 4/8/2021