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:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2011-09-04 18:31:34 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2011-09-04 18:31:34 +0400
commit732366a739112303d356c217f80dd20348a2a560 (patch)
treed9acae8c55ccdcb799fc5693a97827fad0d474f4 /redis_array.h
parent68abdf4282bae996b5796d321adeaf042c878dd3 (diff)
Multi/exec, per node.
Diffstat (limited to 'redis_array.h')
-rw-r--r--redis_array.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/redis_array.h b/redis_array.h
index 84f5db30..613a6ae7 100644
--- a/redis_array.h
+++ b/redis_array.h
@@ -22,17 +22,21 @@ PHP_METHOD(RedisArray, del);
PHP_METHOD(RedisArray, getOption);
PHP_METHOD(RedisArray, setOption);
+PHP_METHOD(RedisArray, multi);
+PHP_METHOD(RedisArray, exec);
+
typedef struct RedisArray_ {
int count;
- char **hosts;
- zval **redis;
- zend_bool index;
- zval *z_fun; /* key extractor */
- zval *z_pure_cmds; /* hash table */
+ char **hosts; /* array of host:port strings */
+ zval **redis; /* array of Redis instances */
+ zval *z_multi_exec; /* Redis instance to be used in multi-exec */
+ zend_bool index; /* use per-node index */
+ zend_bool auto_rehash; /* migrate keys on read operations */
+ zval *z_fun; /* key extractor, callable */
+ zval *z_pure_cmds; /* hash table */
- int auto_rehash; /* migrate keys on read operations */
struct RedisArray_ *prev;
} RedisArray;