.net core使用多个redis空间协作工作
摘要:使用场景:在开发过程中有些项目会考虑到数据量,复杂性等不同因素会把不同的类型数据缓存放到不同的redis空间或者redis集群中时,为了从不同的redis空间或者redis集群中拿到对应的数据,如微服务等 redis操作如下: 1、初始化多个redis或redis集群 第一步:需要创建不同的redi
阅读全文
Self referencing loop detected for property 'Value' with type 'xxx'. Path ''错误解决
摘要:问题:Self referencing loop detected for property 'Value' with type 'xxx'. Path '' 场景:.net core环境中使用release时,调用appsettings.json文件内容时报错,错误内容如上。 源代码如下: Sta
阅读全文