Redis Sscan 命令
Redis 教程
· 2019-03-07 19:42:32
Redis Sscan 命令用于迭代集合中键的元素。
语法
redis Sscan 命令基本语法如下:
SSCAN key cursor [MATCH pattern] [COUNT count]
可用版本
>= 1.0.0
返回值
数组列表。
实例
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 教程 文章: https://codercto.com/courses/l/33.html
Web Operations
John Allspaw、Jesse Robbins / O'Reilly Media / 2010-6-28 / USD 39.99
A web application involves many specialists, but it takes people in web ops to ensure that everything works together throughout an application's lifetime. It's the expertise you need when your start-u......一起来看看 《Web Operations》 这本书的介绍吧!