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:
authormichael-grunder <michael.grunder@gmail.com>2014-06-14 20:30:18 +0400
committermichael-grunder <michael.grunder@gmail.com>2015-05-06 01:00:51 +0300
commit5daa5a2f045c43de88dcd5790be96b37d89b42eb (patch)
tree2475bd6af4bdbc0189049047e71712ae1744b677 /redis_cluster.h
parent32d1f407d863958d137dfe94647f2c59e9b189c7 (diff)
UNSUBSCRIBE/PUNSUBSCRIBE
Implemented the two unsubscribe commands in Redis Cluster. Presently, like with the standard Redis class once you subscribe you're there for good, but it would be nice to be able to use the callback return value to break out of the subscribe loop.
Diffstat (limited to 'redis_cluster.h')
-rw-r--r--redis_cluster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis_cluster.h b/redis_cluster.h
index 515b243a..ead57982 100644
--- a/redis_cluster.h
+++ b/redis_cluster.h
@@ -224,6 +224,8 @@ PHP_METHOD(RedisCluster, sort);
PHP_METHOD(RedisCluster, object);
PHP_METHOD(RedisCluster, subscribe);
PHP_METHOD(RedisCluster, psubscribe);
+PHP_METHOD(RedisCluster, unsubscribe);
+PHP_METHOD(RedisCluster, punsubscribe);
/* Transactions */
PHP_METHOD(RedisCluster, multi);