From df97cc353191a83ebd2ecc092990043f007b9600 Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Mon, 6 Jun 2022 21:55:05 +0300 Subject: Issue #1894 Add the COUNT argument to LPOP and RPOP --- redis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'redis.c') diff --git a/redis.c b/redis.c index d526b99d..bfa72b88 100644 --- a/redis.c +++ b/redis.c @@ -1280,17 +1280,17 @@ PHP_METHOD(Redis, rPushx) } /* }}} */ -/* {{{ proto string Redis::lPOP(string key) */ +/* {{{ proto string Redis::lPop(string key, [int count = 0]) */ PHP_METHOD(Redis, lPop) { - REDIS_PROCESS_KW_CMD("LPOP", redis_key_cmd, redis_string_response); + REDIS_PROCESS_KW_CMD("LPOP", redis_pop_cmd, redis_pop_response); } /* }}} */ -/* {{{ proto string Redis::rPOP(string key) */ +/* {{{ proto string Redis::rPop(string key, [int count = 0]) */ PHP_METHOD(Redis, rPop) { - REDIS_PROCESS_KW_CMD("RPOP", redis_key_cmd, redis_string_response); + REDIS_PROCESS_KW_CMD("RPOP", redis_pop_cmd, redis_pop_response); } /* }}} */ -- cgit v1.2.3