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" />
                    
Directory.Packages.props
<PackageReference Include="VinBen.Extension.Redis" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=VinBen.Extension.Redis&version=0.0.1.7
                    
Install as a Cake Tool

关于

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 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.

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.

Version Downloads Last Updated
0.0.1.7 636 11/21/2025
0.0.1.6 494 11/5/2025
0.0.1.5 443 7/11/2025
0.0.1.4 477 3/17/2025
0.0.1.3 437 9/12/2024
0.0.1.2 432 7/8/2024
0.0.1.1 406 7/8/2024
0.0.1 427 7/7/2024