diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-06-11 02:19:29 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 00:55:31 +0300 |
commit | fe67324a319aefe57adfa8f003ca95bad77cf202 (patch) | |
tree | d7fd51179ca9ff0e7672e085212ec7e7ce79d47f /redis_cluster.h | |
parent | 1f5aa6e8ed3c9852c451080e9017d1b8fb43e665 (diff) |
Introspection commands
Implemented various introspection/option commands for both Redis
and RedisCluster.
Commands implemented:
* getOption
* setOption
* _prefix
* _serialize
* _unserialize
With these implemented, we can properly test RedisCluster with things
like serialization and prefixing turned on.
Diffstat (limited to 'redis_cluster.h')
-rw-r--r-- | redis_cluster.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/redis_cluster.h b/redis_cluster.h index af3d4108..7e5ea194 100644 --- a/redis_cluster.h +++ b/redis_cluster.h @@ -11,7 +11,7 @@ /* Get attached object context */ #define GET_CONTEXT() \ - (redisCluster*)zend_object_store_get_object(getThis() TSRMLS_CC) + ((redisCluster*)zend_object_store_get_object(getThis() TSRMLS_CC)) /* Command building/processing is identical for every command */ #define CLUSTER_BUILD_CMD(name, c, cmd, cmd_len, slot) \ @@ -162,4 +162,11 @@ PHP_METHOD(RedisCluster, zunionstore); PHP_METHOD(RedisCluster, zinterstore); PHP_METHOD(RedisCluster, sort); PHP_METHOD(RedisCluster, object); + +/* Introspection */ +PHP_METHOD(RedisCluster, getoption); +PHP_METHOD(RedisCluster, setoption); +PHP_METHOD(RedisCluster, _prefix); +PHP_METHOD(RedisCluster, _serialize); +PHP_METHOD(RedisCluster, _unserialize); #endif |