Redis Sscan 命令用于迭代集合中键的元素,Sscan 继承自 Scan。
redis Sscan 命令基本语法如下:
SSCAN key cursor [MATCH pattern] [COUNT count]
>= 2.8.0
数组列表。
> SADD myset1 "Google"
(integer) 1
> SADD myset1 "Nhooo"
(integer) 1
> SADD myset1 "Taobao"
(integer) 1
> SSCAN myset1 0 match R*
1) "0"
2) 1) "Nhooo"