diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-02-04 23:55:08 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2014-02-04 23:55:08 +0400 |
commit | f200730fe96f8666fc665cda340f4d26090ba9fb (patch) | |
tree | e0e69b83ef851494dca7fe2cae5ed0d72d2653fc /php_redis.h | |
parent | 1a89ec2ff43c06c6b7d9e1174768c8c51e5efed6 (diff) |
_serialize method
This commit adds a utility method as a counterpart to the _unserialize
utility method, allowing users to manually serialize data themselves
before sending it to Redis. This could be useful for calls going through
EVAL, as phpredis can't automatically serialize/unserialize in that case.
Addresses #431
Diffstat (limited to 'php_redis.h')
-rw-r--r-- | php_redis.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/php_redis.h b/php_redis.h index a50c7c18..176ba2b6 100644 --- a/php_redis.h +++ b/php_redis.h @@ -142,6 +142,7 @@ PHP_METHOD(Redis, time); PHP_METHOD(Redis, getLastError); PHP_METHOD(Redis, clearLastError); PHP_METHOD(Redis, _prefix); +PHP_METHOD(Redis, _serialize); PHP_METHOD(Redis, _unserialize); PHP_METHOD(Redis, mset); |