随笔分类 -  net6

net6 使用 redis 实现 IDistributedCache
摘要:在net6的官方文档中,如果需要使用redis作为分布式缓存,会建议使用RedisCache AddStackExchangeRedisCache ()来实现 ,根据官方文档内容进行操作后,发生了如下异常 public void Test() { Cache.SetString(Key, "123" 阅读全文

posted @ 2021-12-01 15:00 !!!!!!!!!!!!!!! 阅读(1212) 评论(1) 推荐(1)

net6通过反射注册装配autofac
摘要:首先创建2个用于反射的标记 ServiceName是用来做多租户标记的 public class InjectAttribute : Attribute { public string ServiceName { get; set; } public InjectAttribute(string s 阅读全文

posted @ 2021-11-03 16:03 !!!!!!!!!!!!!!! 阅读(397) 评论(0) 推荐(0)

导航