VinBen.Extension.Redis
0.0.1.3
dotnet add package VinBen.Extension.Redis --version 0.0.1.3
NuGet\Install-Package VinBen.Extension.Redis -Version 0.0.1.3
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="VinBen.Extension.Redis" Version="0.0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VinBen.Extension.Redis --version 0.0.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VinBen.Extension.Redis, 0.0.1.3"
#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 VinBen.Extension.Redis as a Cake Addin #addin nuget:?package=VinBen.Extension.Redis&version=0.0.1.3 // Install VinBen.Extension.Redis as a Cake Tool #tool nuget:?package=VinBen.Extension.Redis&version=0.0.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
关于
Vin.Extension.Redis 是 Vin 的一个扩展,用于提供 Redis 的支持。
使用
- 需要在
appsettings.json
中配置 Redis 如:
{
....,
"VinCache": {
"Redis": {
"Host": "127.0.0.1", // ip地址
"Port": 6379, // 端口
"Ssl":false, // 启用SSL
"User":"", // 用户名
"Password":"", // 密码
"Prefix":"", // 前缀
"OtherString":"", // 其他配置
"Dbs":[],// 开启的数据库
"DefaultCache":false,// 替换默认缓存 既替换Vin.Extensions.Cache中的CacheFactory
"DefaultDb":0,// 默认数据库
"NodeOptions":[], // 子节点
// "KeyRule": 0 // 0:默认 1:大驼峰 2:小驼峰 3:下划线 4:中划线
}
}
}
or
{
"VinCache":{
"Redis": "127.0.0.1:6379" // 这样就是启动0号数据库
}
}
- 其他使用
RedisCacheManager.GetRedisCache(数据库索引,需要开启)
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
- FreeRedis (>= 1.2.15)
- VinBen.Extension.Cache (>= 0.0.1.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on VinBen.Extension.Redis:
Package | Downloads |
---|---|
VinBen.Extension.JwtBearer
Package Description |
|
VinBen.Extension.Framework
Package Description |
|
VinBen.Extension.Framework.Signals
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.