From 3491b188e0022f75b938738f7542603c7aae9077 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Fri, 8 May 2015 14:12:34 -0700 Subject: 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. --- php_redis.h | 1 + 1 file changed, 1 insertion(+) (limited to 'php_redis.h') 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); -- cgit v1.2.3