You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bool CRedisClient::lpop(const std::string& key, std::string* value, Node* which, int num_retries)
{
CommandArgs cmd_args;
cmd_args.set_key(key);
cmd_args.set_command("LPOP");
cmd_args.add_arg(cmd_args.get_command());
cmd_args.add_arg(key);
cmd_args.final();
// Bulk string reply: the value of the first element, or nil when key does not exist.
const RedisReplyHelper redis_reply = redis_command(false, num_retries, key, cmd_args, which);
if (REDIS_REPLY_NIL == redis_reply->type)
return false;
if (REDIS_REPLY_STRING == redis_reply->type)
return get_value(redis_reply.get(), value);
return true; // MULTI & EXEC the type always is REDIS_REPLY_STATUS
}
redis_command
第一个参数is_read_command
被设为false
,导致异步模式下redisReply
直接被丢弃The text was updated successfully, but these errors were encountered: