io.vertx.redis.RedisClient.scriptLoad()方法的使用及代码示例

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

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

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

相关文章

微信公众号

最新文章

更多

RedisClient类方法