diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-06-26 23:52:01 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:02:04 +0300 |
commit | 8b83b8783f75a1a16d106a616678f4e9c6bd1ac8 (patch) | |
tree | a0777717bbe706c729f0ddcd7c72755448eab5f7 /redis_cluster.h | |
parent | 03d14ab743ce5e9e2542e4868824b667cd2cf3ea (diff) |
Initial commit of save like commands
For commands like SAVE, BGSAVE, etc we need to change the
semantics from how you would call them directly, given that
we're communicating with multiple redis cluster nodes.
Each of these commands can be called in one of two ways.
1) Pass a single argument, which will be treated as a key,
and the command will be executed against the node where
we believe that key would live.
2) Pass a host and port, and as long as we know about this node
the command will be forwarded there.
Diffstat (limited to 'redis_cluster.h')
-rw-r--r-- | redis_cluster.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/redis_cluster.h b/redis_cluster.h index 45bc288b..321618a6 100644 --- a/redis_cluster.h +++ b/redis_cluster.h @@ -228,6 +228,15 @@ PHP_METHOD(RedisCluster, discard); PHP_METHOD(RedisCluster, watch); PHP_METHOD(RedisCluster, unwatch); +/* DB saving, etc */ +PHP_METHOD(RedisCluster, save); +PHP_METHOD(RedisCluster, bgsave); +PHP_METHOD(RedisCluster, flushdb); +PHP_METHOD(RedisCluster, flushall); +PHP_METHOD(RedisCluster, dbsize); +PHP_METHOD(RedisCluster, bgrewriteaof); +PHP_METHOD(RedisCluster, lastsave); + /* Introspection */ PHP_METHOD(RedisCluster, getoption); PHP_METHOD(RedisCluster, setoption); |