Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-06-06 21:55:05 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-06-07 18:51:55 +0300
commitdf97cc353191a83ebd2ecc092990043f007b9600 (patch)
treecf217600d6610d9ae7d446ea99a6245e61582dc7 /redis_cluster.c
parente6b3fe548421b0f555c6d9d94dea4c26640ba716 (diff)
Add the COUNT argument to LPOP and RPOP
Diffstat (limited to 'redis_cluster.c')
-rw-r--r--redis_cluster.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/redis_cluster.c b/redis_cluster.c
index 140f51bc..5634560f 100644
--- a/redis_cluster.c
+++ b/redis_cluster.c
@@ -820,15 +820,15 @@ PHP_METHOD(RedisCluster, type) {
}
/* }}} */
-/* {{{ proto string RedisCluster::pop(string key) */
+/* {{{ proto string RedisCluster::pop(string key, [int count = 0]) */
PHP_METHOD(RedisCluster, lpop) {
- CLUSTER_PROCESS_KW_CMD("LPOP", redis_key_cmd, cluster_bulk_resp, 0);
+ CLUSTER_PROCESS_KW_CMD("LPOP", redis_pop_cmd, cluster_pop_resp, 0);
}
/* }}} */
-/* {{{ proto string RedisCluster::rpop(string key) */
+/* {{{ proto string RedisCluster::rpop(string key, [int count = 0]) */
PHP_METHOD(RedisCluster, rpop) {
- CLUSTER_PROCESS_KW_CMD("RPOP", redis_key_cmd, cluster_bulk_resp, 0);
+ CLUSTER_PROCESS_KW_CMD("RPOP", redis_pop_cmd, cluster_pop_resp, 0);
}
/* }}} */