XT.Redis
1.0.1
dotnet add package XT.Redis --version 1.0.1
NuGet\Install-Package XT.Redis -Version 1.0.1
<PackageReference Include="XT.Redis" Version="1.0.1" />
paket add XT.Redis --version 1.0.1
#r "nuget: XT.Redis, 1.0.1"
// Install XT.Redis as a Cake Addin #addin nuget:?package=XT.Redis&version=1.0.1 // Install XT.Redis as a Cake Tool #tool nuget:?package=XT.Redis&version=1.0.1
1 redis配置获取
var redisOptions = new RedisOptions { RedisHost = AppSettings.GetValue("RedisConfig", "RedisHost"),
Port = AppSettings.GetValue("RedisConfig", "Port"),
RedisName = AppSettings.GetValue("RedisConfig", "RedisName"),
RedisPass = AppSettings.GetValue("RedisConfig", "RedisPass"),
RedisIndex = AppSettings.GetValue<int>("RedisConfig", "RedisIndex"),
ConnectTimeout = AppSettings.GetValue<int>("RedisConfig", "SyncTimeout"),
SyncTimeout = AppSettings.GetValue<int>("RedisConfig", "ConnectTimeout"),
KeepAlive = AppSettings.GetValue<int>("RedisConfig", "KeepAlive"),
ConnectRetry = AppSettings.GetValue<int>("RedisConfig", "ConnectRetry"),
AbortOnConnectFail = AppSettings.GetValue<bool>("RedisConfig", "AbortOnConnectFail"),
AllowAdmin = AppSettings.GetValue<bool>("RedisConfig", "AllowAdmin") };
services.AddSingleton(typeof(IRedisCacheService), new RedisCacheService(redisOptions));
2 redis配置
"RedisConfig": { "RedisName": "Ecs.Redis", "RedisHost": "172.18.79.25", "Port": "7000", "RedisPass": "Eve2022!", "RedisIndex": 0, "ConnectTimeout": 10000, "SyncTimeout": 10000, "KeepAlive": 20, "ConnectRetry": 10, "AbortOnConnectFail": true, "AllowAdmin": true, "SuspendTime": 2000, "IntervalTime": 0, "ShowLog": false }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.1)
- StackExchange.Redis (>= 2.1.28)
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 |
---|---|---|
1.0.1 | 401 | 8/18/2023 |