From 5daa5a2f045c43de88dcd5790be96b37d89b42eb Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Sat, 14 Jun 2014 09:30:18 -0700 Subject: 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. --- redis_cluster.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'redis_cluster.h') 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); -- cgit v1.2.3