|
|
|
@ -49,6 +49,8 @@ public class RedisConfiguration {
|
|
|
|
|
CompositeCodec codec = new CompositeCodec(StringCodec.INSTANCE, jsonCodec, jsonCodec);
|
|
|
|
|
config.setThreads(redissonProperties.getThreads())
|
|
|
|
|
.setNettyThreads(redissonProperties.getNettyThreads())
|
|
|
|
|
// 缓存 Lua 脚本 减少网络传输(redisson 大部分的功能都是基于 Lua 脚本实现)
|
|
|
|
|
.setUseScriptCache(true)
|
|
|
|
|
.setCodec(codec);
|
|
|
|
|
RedissonProperties.SingleServerConfig singleServerConfig = redissonProperties.getSingleServerConfig();
|
|
|
|
|
if (ObjectUtil.isNotNull(singleServerConfig)) {
|
|
|
|
|