您当前的位置:首页 > 电脑办公 > Linux教程
| PPT | 电脑打字 | 计算机基础 | word | excel | Linux教程 |

自学教程:Redis Sscan 命令

51自学网 2023-01-16 20:09:36
  Linux教程
这篇教程Redis Sscan 命令写得很实用,希望能帮到您。

Redis Sscan 命令用于迭代集合中键的元素。

语法

redis Sscan 命令基本语法如下:

SSCAN key cursor [MATCH pattern] [COUNT count]

可用版本

>= 1.0.0

返回值

数组列表。

实例

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

Redis Sunionstore 命令
Redis Zadd 命令

51自学网,即我要自学网,自学EXCEL、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。
京ICP备13026421号-1