English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Redis Sscan Command

Redis Sets (Set)

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

Syntax

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

SSCAN key cursor [MATCH pattern] [COUNT count]
  • cursor - Cursor.
  • pattern - Matching pattern.
  • count - Specify how many elements to return from the dataset, the default value is 10 .

Available Versions

>= 2.8.0

Return Value

Array List.

Online Example

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

Redis Sets (Set)