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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-05-03 15:54:28 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-10-17 17:08:42 +0300
commit8cb2d5bd94a17c046a50cd4b626d6cae1c41e0f6 (patch)
treedc59913e8c3686321da6c743db4af578846db0ea /library.h
parentb9ca16cc5ba42d74d4e4bceb5806efb376841f29 (diff)
Issue #1048
This commit is adding support of data compression. LZF was choosen because it small and fast and Redis server uses it. Since [pecl package](https://pecl.php.net/package/lzf) doesn't provide lzf.h file after installing, LZF library was added as submodule. Another algorythms may be easely added by analogy with serializers. TODO: unit-tests for different data types.
Diffstat (limited to 'library.h')
-rw-r--r--library.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library.h b/library.h
index 0dc527b0..e19848b7 100644
--- a/library.h
+++ b/library.h
@@ -76,6 +76,9 @@ redis_key_prefix(RedisSock *redis_sock, char **key, strlen_t *key_len);
PHP_REDIS_API int
redis_unserialize(RedisSock *redis_sock, const char *val, int val_len, zval *z_ret TSRMLS_DC);
+PHP_REDIS_API int redis_pack(RedisSock *redis_sock, zval *z, char **val, strlen_t *val_len TSRMLS_DC);
+PHP_REDIS_API int redis_unpack(RedisSock *redis_sock, const char *val, int val_len, zval *z_ret TSRMLS_DC);
+
/*
* Variant Read methods, mostly to implement eval
*/