中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Redis Sscan 命令

Redis 集合(Set)

Redis Sscan 命令用于迭代集合中鍵的元素,Sscan 繼承自 Scan

語法

redis Sscan 命令基本語法如下:

SSCAN key cursor [MATCH pattern] [COUNT count]
  • cursor - 游標。
  • pattern - 匹配的模式。
  • count - 指定從數(shù)據(jù)集里返回多少元素,默認值為 10 。

可用版本

>= 2.8.0

返回值

數(shù)組列表。

實例

redis 127.0.0.1:6379> SADD myset1 "hello"
(integer) 1
redis 127.0.0.1:6379> SADD myset1 "hi"
(integer) 1
redis 127.0.0.1:6379> SADD myset1 "bar"
(integer) 1
redis 127.0.0.1:6379> sscan myset1 0 match h*
1) "0"
2) 1) "hello"
   2) "h1"

Redis 集合(Set)