Comments (3)
这个修改是不需要的:
第一,Config.SenparcSetting.Cache_Redis_Configuration 在初始化的时候已经从 appsettings.json 里面取值了(除非你没有按照标准初始化)。
第二,看一下这里的静态构造函数 static BaseRedisObjectCacheStrategy(),里面已经有赋值:
RedisManager.ConfigurationOption = Config.SenparcSetting.Cache_Redis_Configuration;
所以正常情况下,即使你用了 RedisManager.ConfigurationOption,值也是和 Config.SenparcSetting.Cache_Redis_Configuration相等的。
感谢交流!
from senparc.co2net.
微信的所有配置都是从DB取值 ,SenparcWeixinSetting 基本上没用到;
缓存从以下配置设置
Senparc.CO2NET.Cache.CsRedis.Register.SetConfigurationOption(redisConnection);
Senparc.CO2NET.Cache.CsRedis.Register.UseKeyValueRedisNow();
+
app.UseSenparcGlobal(env,null,
{
register.UseSenparcWeixinCacheCsRedis();
});
就可以启用
这配置在MP AccessToken/JsapiToken 可以正常使用
可是为于MessageHandler 上下文缓存不能生效
from senparc.co2net.
MessageHandler 的缓存也是依赖于整体缓存策略的,所以需要按照 Sample 提供的注册过程,完整注册下来。否则默认就是用内存缓存。
from senparc.co2net.
Related Issues (20)
- HttpClientHalder 动态证书怎么处理 HOT 5
- SENPARC.CO2NET的Config类属性RootDictionaryPath似乎想表达的是RootDirectoryPath HOT 1
- RequestUtility.HttpClientHeader()方法里面通过DefaultRequestHeaders设定Timeout是不会触发超时的 HOT 1
- .Net Core项目调用上传临时素材接口时,若文件名称为中文,上传后的临时素材文件名被编码。 HOT 3
- 关于Senparc.CO2NET.RegisterServices.RegisterServices注册的问题 HOT 1
- 调用SnsApi.JsCode2Json(_wxOpenAppId, _wxOpenAppSecret, code)出现下面错误是什么原因 HOT 2
- 不能推送代码吗 HOT 1
- 获取企业微信的审批数据接口中没有申请单提交时间 HOT 1
- APM程序监控模块,造成CPU占满 HOT 6
- Get能否类似post设置request Header,现在貌似没有提供 HOT 2
- dotnet core 2.2 调用Senparc.CO2NET的方法报错 HOT 1
- 是否可以增加内置审批流程中添加附件功能? HOT 2
- BaseContainer.GetAllItem()报错 HOT 2
- nuget更新到最新版后,执行 app.UseSenparcGlobal 时的错误 HOT 2
- 能否提供PUT和DELETE方法。 HOT 2
- 如何修改redis的前缀名? HOT 4
- The SSL connection could not be established, see inner exception HOT 4
- RequestUtility.HttpGet的serviceProvider 参数为必填,.NetFramework4.5 环境下无法调用 HOT 2
- Senparc.CO2NET.HttpUtility.RequestUtility.HttpGet传入的cookie获取不到 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from senparc.co2net.