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:
authormichael-grunder <michael.grunder@gmail.com>2019-04-16 17:57:40 +0300
committerMichael Grunder <michael.grunder@gmail.com>2019-04-16 18:16:12 +0300
commitd7450b2f59700e4662624317438c456a0dd36165 (patch)
tree01114daffdc930b85039356e75138d5b7b6afa05 /library.c
parent5bf0c84c8fc7411e3d1dbee821c96b5a73561849 (diff)
Add support for STREAM to the type command
Diffstat (limited to 'library.c')
-rw-r--r--library.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/library.c b/library.c
index ca48100f..49e27a08 100644
--- a/library.c
+++ b/library.c
@@ -807,6 +807,8 @@ PHP_REDIS_API void redis_type_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *
l = REDIS_ZSET;
} else if (strncmp(response, "+hash", 5) == 0){
l = REDIS_HASH;
+ } else if (strncmp(response, "+stream", 7) == 0) {
+ l = REDIS_STREAM;
} else {
l = REDIS_NOT_FOUND;
}