VinBen.Extension.Redis 0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package VinBen.Extension.Redis --version 0.0.1                
NuGet\Install-Package VinBen.Extension.Redis -Version 0.0.1                
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" />                
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                
#r "nuget: VinBen.Extension.Redis, 0.0.1"                
#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

// Install VinBen.Extension.Redis as a Cake Tool
#tool nuget:?package=VinBen.Extension.Redis&version=0.0.1                

关于

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. 
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.3 213 9/12/2024
0.0.1.2 240 7/8/2024
0.0.1.1 219 7/8/2024
0.0.1 234 7/7/2024