mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-05-14 07:27:21 +08:00
【优化】移除EasyCaching.Core,EasyCaching.CSRedis,EasyCaching.InMemory等组件,直接使用原生CSRedis组件,替换SqlSugar二级缓存组件。
This commit is contained in:
@@ -27,37 +27,6 @@
|
||||
// 如果采用容器化部署Service 要写成redis的服务名,否则写地址
|
||||
"ConnectionString": "127.0.0.1:6379,password=,connectTimeout=30000,responseTimeout=30000,abortConnect=false,connectRetry=1,syncTimeout=10000,DefaultDatabase=9" //redis数据库连接字符串
|
||||
},
|
||||
"easycaching": {
|
||||
"csredis": {
|
||||
"MaxRdSecond": 0, //预防缓存在同一时间全部失效,可以为每个key的过期时间添加一个随机的秒数,默认值是120秒
|
||||
"EnableLogging": false, // 是否开启日志,默认值是false
|
||||
"LockMs": 5000, // 互斥锁的存活时间, 默认值是5000毫秒
|
||||
"SleepMs": 300, // 没有获取到互斥锁时的休眠时间,默认值是300毫秒
|
||||
"dbconfig": {
|
||||
"ConnectionStrings": [
|
||||
"127.0.0.1:6379,password=,connectTimeout=30000,responseTimeout=30000,abortConnect=false,connectRetry=1,syncTimeout=10000,DefaultDatabase=9" //如果没有密码请保持为空
|
||||
],
|
||||
//"Sentinels": [
|
||||
// "192.169.1.10:26379",
|
||||
// "192.169.1.11:26379",
|
||||
// "192.169.1.12:26379"
|
||||
//],
|
||||
"ReadOnly": false
|
||||
}
|
||||
},
|
||||
"inmemory": {
|
||||
"MaxRdSecond": 0,
|
||||
"EnableLogging": false,
|
||||
"LockMs": 5000,
|
||||
"SleepMs": 300,
|
||||
"DBConfig": {
|
||||
"SizeLimit": 10000,
|
||||
"ExpirationScanFrequency": 60, // InMemory的过期扫描频率,默认值是60秒
|
||||
"EnableReadDeepClone": true,
|
||||
"EnableWriteDeepClone": false
|
||||
}
|
||||
}
|
||||
},
|
||||
//jwt授权认证的一些设置
|
||||
"JwtConfig": {
|
||||
"SecretKey": "8kh2luzmp0oq9wfbdeasygj647vr531n",
|
||||
|
||||
Reference in New Issue
Block a user