xBei.Redis.Extension
1.1.11.2
dotnet add package xBei.Redis.Extension --version 1.1.11.2
NuGet\Install-Package xBei.Redis.Extension -Version 1.1.11.2
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="xBei.Redis.Extension" Version="1.1.11.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xBei.Redis.Extension" Version="1.1.11.2" />
<PackageReference Include="xBei.Redis.Extension" />
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 xBei.Redis.Extension --version 1.1.11.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xBei.Redis.Extension, 1.1.11.2"
#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 xBei.Redis.Extension@1.1.11.2
#: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=xBei.Redis.Extension&version=1.1.11.2
#tool nuget:?package=xBei.Redis.Extension&version=1.1.11.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xBei.Redis.Extension
基于StackExchange.Redis的Redis操作类库
安装
dotnet add package xBei.Redis.Extension
更新历史
1.1.11
- 支持 net8.0
1.1.10
- 支持读写字节数组
1.1.9
- 简单实现订阅功能
1.1.8
- 移除 net5 支持
- 使用
RedisClientJsonConfig配置JSON的系列化参数
1.1.7
- 移除 netcoreapp2.1 支持
- 使用
System.Text.Json替换Newtonsoft.Json
用法
redisClient.Database可以直接使用StackExchange.Redis.IDatabase的所有方法。
redisClient.SetIndex(0)可以切换数据库。
配置JSON
RedisClient.JsonConfig(options => {
options.Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping;
options.WriteIndented = false,
return options;
});
RedisClient.JsonConfig(options => {
return new System.Text.Json.JsonSerializerOptions {
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
WriteIndented = false,
};
});
| 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. net9.0 was computed. 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.
-
net8.0
- Microsoft.Extensions.Options (>= 9.0.6)
- StackExchange.Redis (>= 2.8.41)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on xBei.Redis.Extension:
| Package | Downloads |
|---|---|
|
xBei.Redis.Extension.MsgPack
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.11.2 | 237 | 6/27/2025 |
| 1.1.11.1 | 233 | 4/27/2025 |
| 1.1.11 | 256 | 1/15/2024 |
| 1.1.10 | 568 | 11/12/2023 |
| 1.1.9 | 176 | 11/9/2023 |
| 1.1.8 | 184 | 10/9/2023 |
| 1.1.7 | 636 | 9/22/2022 |
| 1.1.6 | 1,024 | 6/15/2022 |
| 1.1.5 | 888 | 3/2/2022 |
| 1.1.4 | 1,111 | 8/10/2021 |
| 1.1.2 | 753 | 7/23/2021 |
| 1.1.0 | 874 | 7/21/2021 |
| 1.0.8 | 2,323 | 9/24/2020 |
| 1.0.7 | 848 | 1/17/2020 |
| 1.0.6 | 1,770 | 12/4/2019 |
| 1.0.2 | 741 | 5/22/2019 |
| 1.0.0 | 717 | 5/20/2019 |