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>2012-09-09 19:13:44 +0400
committermichael-grunder <michael.grunder@gmail.com>2012-09-09 19:13:44 +0400
commitd1b12168527dc0bb06d7fab51924af28c2028a1b (patch)
tree1d30f5228eebc072f78d82235d1966479e3a982b /php_redis.h
parent9eb217c061dbc60609f426b6fc365e0c3ef0580c (diff)
PSUBSCRIBE
Implemented PSUBSCRIBE/PUNSUBSCRIBE and changed the present subscribe and unsubscribe functions into generic versions that can handle both cases.
Diffstat (limited to 'php_redis.h')
-rw-r--r--php_redis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/php_redis.h b/php_redis.h
index 71e29ffd..5ffe5c31 100644
--- a/php_redis.h
+++ b/php_redis.h
@@ -171,7 +171,9 @@ PHP_METHOD(Redis, pipeline);
PHP_METHOD(Redis, publish);
PHP_METHOD(Redis, subscribe);
+PHP_METHOD(Redis, psubscribe);
PHP_METHOD(Redis, unsubscribe);
+PHP_METHOD(Redis, punsubscribe);
PHP_METHOD(Redis, getOption);
PHP_METHOD(Redis, setOption);
@@ -204,6 +206,9 @@ PHPAPI void generic_empty_cmd_impl(INTERNAL_FUNCTION_PARAMETERS, char *cmd, int
PHPAPI void generic_empty_cmd(INTERNAL_FUNCTION_PARAMETERS, char *cmd, int cmd_len, ...);
PHPAPI void generic_empty_long_cmd(INTERNAL_FUNCTION_PARAMETERS, char *cmd, int cmd_len, ...);
+PHPAPI void generic_subscribe_cmd(INTERNAL_FUNCTION_PARAMETERS, char *sub_cmd);
+PHPAPI void generic_unsubscribe_cmd(INTERNAL_FUNCTION_PARAMETERS, char *unsub_cmd);
+
PHPAPI void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int use_atof TSRMLS_DC);
PHPAPI int redis_response_enqueued(RedisSock *redis_sock TSRMLS_DC);