diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-05-11 13:04:13 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-05-11 13:04:13 +0300 |
commit | 068ce978e1e0f8c9fd3665da15917acb0d4155ee (patch) | |
tree | 4b3458796353365fcc20cd3e779528c40b6c217f /cluster_library.c | |
parent | f63b87f173edd854e7e5ee190901f91560e176ca (diff) |
Fix support for STREAM to the RedisCluster::type command
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 2 |
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); } |