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-05-13 04:49:33 +0300
committerMichael Grunder <michael.grunder@gmail.com>2019-05-13 19:38:18 +0300
commit5cb30fb2a65abc9d31ff58af6da0fbb6be4ec153 (patch)
treef44faea9b2f4b044f41750ea31f46bc284770d81 /cluster_library.c
parentbe3089c6cb8344697556a00fdcebdc0619df58e0 (diff)
Adds OPT_REPLY_LITERAL for rawCommand and EVAL
Adds an option to process the actual strings in simple string replies as opposed to translating them to `true`. This only applies to `rawCommand` and `eval` because as far as I know know vanilla Redis command attaches any information besides `OK` to simple string replies. Addresses #1550
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 7dd104f5..dd1e0bbc 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -2098,6 +2098,12 @@ PHP_REDIS_API void cluster_variant_resp(INTERNAL_FUNCTION_PARAMETERS, redisClust
cluster_variant_resp_generic(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, 0, ctx);
}
+PHP_REDIS_API void cluster_variant_raw_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c,
+ void *ctx)
+{
+ cluster_variant_resp_generic(INTERNAL_FUNCTION_PARAM_PASSTHRU, c, c->flags->reply_literal, ctx);
+}
+
PHP_REDIS_API void cluster_variant_resp_strings(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c,
void *ctx)
{