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>2020-06-08 00:09:30 +0300
committerGitHub <noreply@github.com>2020-06-08 00:09:30 +0300
commit04def9fbe2194b3b711362de57260a6cd5216e69 (patch)
tree35ef5d8eaa6e50f360ad63a5f444e4b64782a30f /redis_commands.c
parent5ca4141c72e23816f146b49877a6a4b8098b34c6 (diff)
Rebased LZ4 PR (#1781)
LZ4 compression by @iliaal
Diffstat (limited to 'redis_commands.c')
-rw-r--r--redis_commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis_commands.c b/redis_commands.c
index f07fdfcb..97442de3 100644
--- a/redis_commands.c
+++ b/redis_commands.c
@@ -4003,6 +4003,9 @@ void redis_setoption_handler(INTERNAL_FUNCTION_PARAMETERS,
#ifdef HAVE_REDIS_ZSTD
|| val_long == REDIS_COMPRESSION_ZSTD
#endif
+#ifdef HAVE_REDIS_LZ4
+ || val_long == REDIS_COMPRESSION_LZ4
+#endif
) {
redis_sock->compression = val_long;
RETURN_TRUE;