Easy Tutorial
❮ Server Bgrewriteaof Strings Mset ❯

Redis Sscan Command

Redis Sets

The Redis Sscan command is used to iterate over the elements of a set key. Sscan inherits from Scan.

Syntax

The basic syntax of the redis Sscan command is as follows:

SSCAN key cursor [MATCH pattern] [COUNT count]

Available Versions

= 2.8.0

Return Value

Array list.

Example

Example

> SADD myset1 "Google"
(integer) 1
> SADD myset1 "tutorialpro"
(integer) 1
> SADD myset1 "Taobao"
(integer) 1
> SSCAN myset1 0 match R*
1) "0"
2) 1) "tutorialpro"

Redis Sets

❮ Server Bgrewriteaof Strings Mset ❯