VinBen.Extension.Redis
0.0.1.7
dotnet add package VinBen.Extension.Redis --version 0.0.1.7
NuGet\Install-Package VinBen.Extension.Redis -Version 0.0.1.7
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.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VinBen.Extension.Redis" Version="0.0.1.7" />
<PackageReference Include="VinBen.Extension.Redis" />
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 VinBen.Extension.Redis --version 0.0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VinBen.Extension.Redis, 0.0.1.7"
#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 VinBen.Extension.Redis@0.0.1.7
#: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=VinBen.Extension.Redis&version=0.0.1.7
#tool nuget:?package=VinBen.Extension.Redis&version=0.0.1.7
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. net9.0 is compatible. 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
- FreeRedis (>= 1.2.15)
- VinBen.Extension.Cache (>= 0.0.1.7)
-
net9.0
- FreeRedis (>= 1.2.15)
- VinBen.Extension.Cache (>= 0.0.1.7)
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.