Info
Version: | 1.0.0 |
Author(s): | Haiyun |
Last Update: | Tuesday, August 11, 2020 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Haiyun.Cache |
Install
Install-Package Haiyun.Cache
dotnet add package Haiyun.Cache
paket add Haiyun.Cache
Haiyun.Cache Download (Unzip the "nupkg" after downloading)
Dependencies
- CSRedisCore(>= 3.6.2)
- Caching.CSRedis(>= 3.6.2)
- Microsoft.Extensions.Caching.Memory(>= 3.1.3)
- Microsoft.Extensions.DependencyInjection.Abstractions(>= 3.1.3)
- Newtonsoft.Json(>= 12.0.3)
MemoryCache用法:MemCacheHelper.GetCache<string>("yourcachekey");
RedisCache用法:RedisHelper.Get("yourcachekey"); redis需要在startup中注册redis的数据库链接:services.AddRedisClient(RedisConnStr);.