mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-04-26 18:18:03 +02:00
documentation: sSize example
This commit is contained in:
@@ -427,6 +427,13 @@ Return the cardinality of the set identified by key.
|
||||
##### *Return value*
|
||||
*LONG* the cardinality of the set identified by key, 0 if set didn't exist.
|
||||
##### *Example*
|
||||
<pre>
|
||||
$redis->sadd('key1' , 'set1');
|
||||
$redis->sadd('key1' , 'set2');
|
||||
$redis->sadd('key1' , 'set3'); /* 'key1' => {'set1', 'set2', 'set3'}*/
|
||||
$redis->sSize('key1'); /* 3 */
|
||||
$redis->sSize('keyX'); /* 0 */
|
||||
</pre>
|
||||
|
||||
## spop
|
||||
##### *Description*
|
||||
|
||||
Reference in New Issue
Block a user