摘要: .Net Core 缓存方式(二)自定义分布式缓存的扩展方法(5) IDistributedCache 的扩展方法 IDistributedCache 的扩展方法实现了类似于 cache.GetString(key); 这种写法,但是实际使用起来还需要写多行 类转字符串的代码,这时候就可以自己自定义 阅读全文
posted @ 2020-08-26 19:15 Pursue` 阅读(814) 评论(0) 推荐(0) 编辑
摘要: .Net Core 缓存方式(二)分布式缓存的扩展方法的实现(4) IDistributedCache 接口 看过 IDistributedCache.cs 了解到,所有分布式缓存都是通过实现 IDistributedCache,实现使用不同的缓存服务器, IDistributedCache.cs 阅读全文
posted @ 2020-08-26 18:49 Pursue` 阅读(986) 评论(0) 推荐(0) 编辑
摘要: .Net Core 缓存方式(二)StackExchangeRedisCache实现(3) Distributed Redis Cache 是什么 Redis是一种开源的内存中数据存储,通常用作分布式缓存 使用方式 Startup.ConfigureServices nuget Microsoft. 阅读全文
posted @ 2020-08-26 17:09 Pursue` 阅读(1847) 评论(1) 推荐(0) 编辑