本文整理了Java中org.redisson.config.Config.setUseScriptCache()
方法的一些代码示例,展示了Config.setUseScriptCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.setUseScriptCache()
方法的具体详情如下:
包路径:org.redisson.config.Config
类名称:Config
方法名:setUseScriptCache
[英]Defines whether to use Lua-script cache on Redis side. Most Redisson methods are Lua-script based and this setting turned on could increase speed of such methods execution and save network traffic.
NOTE: readMode
option is not taken into account for such calls as Redis slave redirects execution of cached Lua-script on Redis master node.
Default is false
.
[中]定义是否在Redis端使用Lua脚本缓存。大多数Redisson方法都是基于Lua脚本的,打开此设置可以提高此类方法的执行速度并节省网络流量。
注意:readMode
选项不考虑在Redis主节点上执行缓存Lua脚本的Redis slave重定向等调用。
默认值为false
。
代码示例来源:origin: redisson/redisson
setUseScriptCache(oldConf.isUseScriptCache());
setKeepPubSubOrder(oldConf.isKeepPubSubOrder());
setLockWatchdogTimeout(oldConf.getLockWatchdogTimeout());
代码示例来源:origin: redisson/redisson
setUseScriptCache(oldConf.isUseScriptCache());
setKeepPubSubOrder(oldConf.isKeepPubSubOrder());
setLockWatchdogTimeout(oldConf.getLockWatchdogTimeout());
代码示例来源:origin: org.redisson/redisson
setUseScriptCache(oldConf.isUseScriptCache());
setKeepPubSubOrder(oldConf.isKeepPubSubOrder());
setLockWatchdogTimeout(oldConf.getLockWatchdogTimeout());
内容来源于网络,如有侵权,请联系作者删除!