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>2017-08-20 23:28:00 +0300
committermichael-grunder <michael.grunder@gmail.com>2017-08-20 23:28:00 +0300
commitcccc3997e960472e54075b59acc2563cb1eb207e (patch)
tree6488379c216a08b99c5bc8c9b363bda44f52a821 /redis_commands.c
parent6e83c1126645759baa99fd9e08adb57603dfa565 (diff)
Update EXISTS to handle multiple keys
Fixes #1223
Diffstat (limited to 'redis_commands.c')
-rw-r--r--redis_commands.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/redis_commands.c b/redis_commands.c
index cb517600..7cf274c0 100644
--- a/redis_commands.c
+++ b/redis_commands.c
@@ -2790,6 +2790,14 @@ int redis_migrate_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
return SUCCESS;
}
+/* EXISTS */
+int redis_exists_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
+ char **cmd, int *cmd_len, short *slot, void **ctx)
+{
+ return gen_varkey_cmd(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock,
+ "EXISTS", sizeof("EXISTS") - 1, 0, 0, cmd, cmd_len, slot);
+}
+
/* DEL */
int redis_del_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
char **cmd, int *cmd_len, short *slot, void **ctx)