MicroCloud.Redis 7.1.1.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MicroCloud.Redis --version 7.1.1.4
NuGet\Install-Package MicroCloud.Redis -Version 7.1.1.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="MicroCloud.Redis" Version="7.1.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MicroCloud.Redis --version 7.1.1.4
#r "nuget: MicroCloud.Redis, 7.1.1.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 MicroCloud.Redis as a Cake Addin
#addin nuget:?package=MicroCloud.Redis&version=7.1.1.4

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

MicroCloud Redis 缓存组件

说明

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

单机用法

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

  1. 通过nuget引用 MicroCloud.Redis 程序集

Install-Package MicroCloud.Redis 2. 在 appsettings.json 中 的 MicroCloud 节点下添加如下配置节点

{
  "MicroCloud": {
    "Redis": {
      "Configuration": "localhost",
      // "Configuration": "192.168.70.99:6379,password=xxxxx",
      "InstanceName": "MicroCloudDemo",
      "Enabled": "true" 
    } 
  }
}
  1. 如果要禁用Redis缓存功能,设置上面的配置 Enabled: false 即可。当启用Redis时,会自动清除已有的IDistributedCache分布式缓存实现

集群用法

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

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
8.0.2.1 60 6/7/2024
8.0.1.9 66 6/6/2024
8.0.1.8 52 6/6/2024
8.0.1.7 69 5/15/2024
8.0.1.6 55 5/15/2024
8.0.1.5 71 5/15/2024
8.0.1.4 68 5/14/2024
8.0.1.3 63 5/10/2024
8.0.1.2 72 5/8/2024
8.0.1.1 75 5/7/2024
8.0.0.9 70 5/1/2024
8.0.0.8 79 5/1/2024
8.0.0.7 88 4/30/2024
8.0.0.5 83 4/19/2024
7.2.0.1 235 10/26/2023
7.1.2.9 84 11/7/2023
7.1.2.8 96 10/19/2023
7.1.2.7 92 10/19/2023
7.1.2.6 92 10/18/2023
7.1.2.5 95 9/20/2023
7.1.2.4 100 9/13/2023
7.1.2.3 98 9/13/2023
7.1.2.2 98 9/12/2023
7.1.2.1 124 9/4/2023
7.1.1.9 109 8/31/2023
7.1.1.6 120 8/29/2023
7.1.1.5 123 8/25/2023
7.1.1.4 120 8/25/2023
7.1.1.3 108 8/25/2023
7.1.1.2 105 8/24/2023
7.1.1.1 105 8/24/2023
7.0.3.1 117 8/24/2023
7.0.2.7 108 5/12/2023
7.0.2.6 111 5/11/2023
7.0.1.7 127 5/9/2023
7.0.1.6 130 5/9/2023