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-06 00:54:48 +0400
committermichael-grunder <michael.grunder@gmail.com>2015-05-06 00:34:58 +0300
commit737ad2bd97822b65847e8541dd66943db9a17bf3 (patch)
tree96de699ab61f5bad740c849ecd5859050d71547a /redis_cluster.c
parentb5d2a5fa5c8fa80bb3a8081ed20755d5afa0efc1 (diff)
HINCRBY
Diffstat (limited to 'redis_cluster.c')
-rw-r--r--redis_cluster.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/redis_cluster.c b/redis_cluster.c
index 60ef772b..3b007e5f 100644
--- a/redis_cluster.c
+++ b/redis_cluster.c
@@ -72,6 +72,7 @@ zend_function_entry redis_cluster_functions[] = {
PHP_ME(RedisCluster, hget, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, hgetall, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, hexists, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(RedisCluster, hincrby, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, dump, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, zrank, NULL, ZEND_ACC_PUBLIC)
PHP_ME(RedisCluster, zrevrank, NULL, ZEND_ACC_PUBLIC)
@@ -474,6 +475,12 @@ PHP_METHOD(RedisCluster, hexists) {
}
/* }}} */
+/* {{{ proto long RedisCluster::hincr(string key, string mem, long val) */
+PHP_METHOD(RedisCluster, hincrby) {
+ CLUSTER_PROCESS_CMD(hincrby, cluster_long_resp);
+}
+/* }}} */
+
/* {{{ proto string RedisCluster::dump(string key) */
PHP_METHOD(RedisCluster, dump) {
CLUSTER_PROCESS_KW_CMD("DUMP", redis_key_cmd, cluster_bulk_raw_resp);