本文整理了Java中io.vertx.redis.RedisClient.lpop
方法的一些代码示例,展示了RedisClient.lpop
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RedisClient.lpop
方法的具体详情如下:
包路径:io.vertx.redis.RedisClient
类名称:RedisClient
方法名:lpop
[英]Remove and get the first element in a list
[中]删除并获取列表中的第一个元素
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Remove and get the first element in a list
* @param key String key
* @param handler Handler for the result of this call.
* @return
*/
public io.vertx.rxjava.redis.RedisClient lpop(String key, Handler<AsyncResult<String>> handler) {
delegate.lpop(key, handler);
return this;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Remove and get the first element in a list
* @param key String key
* @param handler Handler for the result of this call.
* @return
*/
public io.vertx.rxjava.redis.RedisClient lpop(String key, Handler<AsyncResult<String>> handler) {
delegate.lpop(key, handler);
return this;
}
代码示例来源:origin: org.swisspush.gateleen/gateleen-queue
@Override
public Future<String> popQueueToUnlock() {
Future<String> future = Future.future();
redisClient.lpop(STORAGE_QUEUES_TO_UNLOCK, event -> {
if(event.failed()){
future.fail(event.cause().getMessage());
return;
}
future.complete(event.result());
});
return future;
}
代码示例来源:origin: org.swisspush/redisques
log.trace("RedisQues read queue lpop: " + key1);
redisClient.lpop(key1, jsonAnswer -> {
if (jsonAnswer.failed()) {
log.error("Failed to pop from queue '{}'", queue, jsonAnswer.cause());
内容来源于网络,如有侵权,请联系作者删除!