Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -4932,6 +4932,28 @@ public function xRevRange($stream, $end, $start, $count = null)
public function xTrim($stream, $maxLen, $isApproximate)
{
}

/**
* Adds a values to the set value stored at key.
*
* @param string $key Required key
* @param array $values Required values
*
* @return int|bool The number of elements added to the set.
* If this value is already in the set, FALSE is returned
*
* @link https://redis.io/commands/sadd
* @link https://github.com/phpredis/phpredis/commit/3491b188e0022f75b938738f7542603c7aae9077
* @since phpredis 2.2.8
* @example
* <pre>
* $redis->sAddArray('k', array('v1')); // boolean
* $redis->sAddArray('k', array('v1', 'v2', 'v3')); // boolean
* </pre>
*/
public function sAddArray($key, array $values)
{
}
}

class RedisException extends Exception
Expand Down