diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-06-06 21:55:05 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-06-07 18:51:55 +0300 |
commit | df97cc353191a83ebd2ecc092990043f007b9600 (patch) | |
tree | cf217600d6610d9ae7d446ea99a6245e61582dc7 /redis.c | |
parent | e6b3fe548421b0f555c6d9d94dea4c26640ba716 (diff) |
Issue #1894issue-1894-pop-count
Add the COUNT argument to LPOP and RPOP
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } /* }}} */ |