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>2015-05-09 00:12:34 +0300
committermichael-grunder <michael.grunder@gmail.com>2015-05-09 00:12:34 +0300
commit3491b188e0022f75b938738f7542603c7aae9077 (patch)
treecdd0ba7ee27aade9a6f83f50c8a1c8f510bd5051 /php_redis.h
parent622709f311896c59a565886d089e13795de2c371 (diff)
Added a new method sAddArray to both Redis and RedisCluster
Presently, the sAdd command is variadic, meaning that it takes a key and then 1 to N additional arguments for the members being added. We need to keep this functionality to avoid breaking existing code, but there are good performance and other reasons to have an sAdd command which takes a key followed by an array of members, which is what the sAddArray method implements.
Diffstat (limited to 'php_redis.h')
-rw-r--r--php_redis.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/php_redis.h b/php_redis.h
index aa621f18..b52fceef 100644
--- a/php_redis.h
+++ b/php_redis.h
@@ -80,6 +80,7 @@ PHP_METHOD(Redis, lGetRange);
PHP_METHOD(Redis, lSet);
PHP_METHOD(Redis, lInsert);
PHP_METHOD(Redis, sAdd);
+PHP_METHOD(Redis, sAddArray);
PHP_METHOD(Redis, sSize);
PHP_METHOD(Redis, sRemove);
PHP_METHOD(Redis, sMove);