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>2019-05-11 13:04:13 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-05-11 13:04:13 +0300
commit068ce978e1e0f8c9fd3665da15917acb0d4155ee (patch)
tree4b3458796353365fcc20cd3e779528c40b6c217f /cluster_library.c
parentf63b87f173edd854e7e5ee190901f91560e176ca (diff)
Fix support for STREAM to the RedisCluster::type command
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c
index cc1ef16e..364f7d4b 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -1808,6 +1808,8 @@ PHP_REDIS_API void cluster_type_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster
CLUSTER_RETURN_LONG(c, REDIS_HASH);
} else if (strncmp(c->line_reply, "zset", 4) == 0) {
CLUSTER_RETURN_LONG(c, REDIS_ZSET);
+ } else if (strncmp(c->line_reply, "+stream", 7) == 0) {
+ CLUSTER_RETURN_LONG(c, REDIS_STREAM);
} else {
CLUSTER_RETURN_LONG(c, REDIS_NOT_FOUND);
}