diff options
author | michael-grunder <michael.grunder@gmail.com> | 2015-05-09 00:12:34 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-09 00:12:34 +0300 |
commit | 3491b188e0022f75b938738f7542603c7aae9077 (patch) | |
tree | cdd0ba7ee27aade9a6f83f50c8a1c8f510bd5051 /php_redis.h | |
parent | 622709f311896c59a565886d089e13795de2c371 (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.h | 1 |
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); |