本文整理了Java中io.vertx.redis.RedisClient.scriptLoad
方法的一些代码示例,展示了RedisClient.scriptLoad
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RedisClient.scriptLoad
方法的具体详情如下:
包路径:io.vertx.redis.RedisClient
类名称:RedisClient
方法名:scriptLoad
[英]Load the specified Lua script into the script cache.
[中]将指定的Lua脚本加载到脚本缓存中。
代码示例来源:origin: vert-x3/vertx-rx
/**
* Load the specified Lua script into the script cache.
* @param script Lua script
* @param handler Handler for the result of this call.
* @return
*/
public io.vertx.rxjava.redis.RedisClient scriptLoad(String script, Handler<AsyncResult<String>> handler) {
delegate.scriptLoad(script, handler);
return this;
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Load the specified Lua script into the script cache.
* @param script Lua script
* @param handler Handler for the result of this call.
* @return
*/
public io.vertx.rxjava.redis.RedisClient scriptLoad(String script, Handler<AsyncResult<String>> handler) {
delegate.scriptLoad(script, handler);
return this;
}
代码示例来源:origin: org.swisspush/redisques
} else {
log.info("load lua script for script type: " + luaScriptType);
redisClient.scriptLoad(script, stringAsyncResult -> {
if (stringAsyncResult.failed()) {
log.warn("Received failed message for loadLuaScript. Lets run into NullPointerException now.", stringAsyncResult.cause());
内容来源于网络,如有侵权,请联系作者删除!