1.update default timeout of redis client lettuce for j2cache

main
Gary 5 months ago
parent 1b41cf2ee0
commit c2616cc918

@ -7,10 +7,11 @@ spring:
uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000
redis:
lettuce:
# 地址, 多个地址使用‘,’逗号分割
hosts: ${spring.redis.host}:${spring.redis.port}
password: ${spring.redis.password}
timeout: 180000
j2cache:
openSpringCache: true
@ -26,7 +27,7 @@ j2cache:
L2:
#使用springRedis替换二级缓存
provider_class: net.oschina.j2cache.cache.support.redis.SpringRedisProvider
config_section: redis
config_section: lettuce
#使用springRedis进行广播通知缓失效
broadcast: net.oschina.j2cache.cache.support.redis.SpringRedisPubSubPolicy

@ -10,10 +10,11 @@ spring:
multipart:
max-file-size: 20MB
max-request-size: 200MB
redis:
lettuce:
# 地址, 多个地址使用‘,’逗号分割
hosts: ${spring.redis.host}:${spring.redis.port}
password: ${spring.redis.password}
timeout: 180000
j2cache:
openSpringCache: true
# 缓存中不存在时,运行缓存空对象
@ -28,7 +29,7 @@ j2cache:
L2:
#使用springRedis替换二级缓存
provider_class: net.oschina.j2cache.cache.support.redis.SpringRedisProvider
config_section: redis
config_section: lettuce
#使用springRedis进行广播通知缓失效
broadcast: net.oschina.j2cache.cache.support.redis.SpringRedisPubSubPolicy

Loading…
Cancel
Save