org.redisson.config.Config.setUseScriptCache()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(163)

本文整理了Java中org.redisson.config.Config.setUseScriptCache()方法的一些代码示例,展示了Config.setUseScriptCache()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.setUseScriptCache()方法的具体详情如下:
包路径:org.redisson.config.Config
类名称:Config
方法名:setUseScriptCache

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());

相关文章

微信公众号

最新文章

更多