diff options
-rw-r--r-- | redis_commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/redis_commands.c b/redis_commands.c index 47f74904..34bf0b09 100644 --- a/redis_commands.c +++ b/redis_commands.c @@ -1594,7 +1594,11 @@ int redis_set_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, ZEND_HASH_FOREACH_STR_KEY_VAL(kt, zkey, v) { ZVAL_DEREF(v); /* Detect PX or EX argument and validate timeout */ - if (zkey && (ZSTR_STRICMP_STATIC(zkey, "EX") || ZSTR_STRICMP_STATIC(zkey, "PX"))) { + if (zkey && (ZSTR_STRICMP_STATIC(zkey, "EX") || + ZSTR_STRICMP_STATIC(zkey, "PX") || + ZSTR_STRICMP_STATIC(zkey, "EXAT") || + ZSTR_STRICMP_STATIC(zkey, "PXAT")) + ) { exp_set = 1; /* Set expire type */ |