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 /cluster_library.c
parente6b3fe548421b0f555c6d9d94dea4c26640ba716 (diff)
Add the COUNT argument to LPOP and RPOP
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 8ebc8760..976cb889 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -1755,6 +1755,18 @@ PHP_REDIS_API void cluster_ping_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster
}
PHP_REDIS_API void
+cluster_pop_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, void *ctx)
+{
+ if (ctx == NULL) {
+ cluster_bulk_resp(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, NULL);
+ } else if (ctx == PHPREDIS_CTX_PTR) {
+ cluster_mbulk_raw_resp(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, NULL);
+ } else {
+ ZEND_ASSERT(!"memory corruption?");
+ }
+}
+
+PHP_REDIS_API void
cluster_set_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, void *ctx)
{
if (ctx == NULL) {