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 /cluster_library.c | |
parent | e6b3fe548421b0f555c6d9d94dea4c26640ba716 (diff) |
Issue #1894issue-1894-pop-count
Add the COUNT argument to LPOP and RPOP
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 12 |
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) { |