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:
authorRemi Collet <remi@remirepo.net>2019-06-26 17:26:08 +0300
committerRemi Collet <remi@remirepo.net>2019-07-09 11:00:40 +0300
commit2abc61da318e2b8287fe0647f84a2b028ca913b0 (patch)
tree91e3a880ed26a618b47a9ead7bc6d64ca9ba17a1 /common.h
parent52764748121bf0c6980b53f1212fa5a25e98fa5b (diff)
Add support for Zstd compression
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 6b75a81e..2975c39a 100644
--- a/common.h
+++ b/common.h
@@ -79,6 +79,7 @@ typedef enum _PUBSUB_TYPE {
#define REDIS_OPT_TCP_KEEPALIVE 6
#define REDIS_OPT_COMPRESSION 7
#define REDIS_OPT_REPLY_LITERAL 8
+#define REDIS_OPT_COMPRESSION_LEVEL 9
/* cluster options */
#define REDIS_FAILOVER_NONE 0
@@ -96,6 +97,7 @@ typedef enum {
/* compression */
#define REDIS_COMPRESSION_NONE 0
#define REDIS_COMPRESSION_LZF 1
+#define REDIS_COMPRESSION_ZSTD 2
/* SCAN options */
#define REDIS_SCAN_NORETRY 0
@@ -258,6 +260,7 @@ typedef struct {
redis_serializer serializer;
int compression;
+ int compression_level;
long dbNumber;
zend_string *prefix;