Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 068ce97

Browse files
committed
Fix support for STREAM to the RedisCluster::type command
1 parent f63b87f commit 068ce97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cluster_library.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,8 @@ PHP_REDIS_API void cluster_type_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster
18081808
CLUSTER_RETURN_LONG(c, REDIS_HASH);
18091809
} else if (strncmp(c->line_reply, "zset", 4) == 0) {
18101810
CLUSTER_RETURN_LONG(c, REDIS_ZSET);
1811+
} else if (strncmp(c->line_reply, "+stream", 7) == 0) {
1812+
CLUSTER_RETURN_LONG(c, REDIS_STREAM);
18111813
} else {
18121814
CLUSTER_RETURN_LONG(c, REDIS_NOT_FOUND);
18131815
}

0 commit comments

Comments
 (0)