SCAN - 扫描键

Request/Response
增量式迭代数据库中的键,避免 KEYS 命令的阻塞问题。

Basic Info

Mode
Request/Response
Endianness
big-endian
Charset
utf8
Newline
default

Communicator

Connection Name
默认服务器

Request Parameter

Format
raw
Escape
No
Newline Style
CRLF
Charset
utf8
Text Template raw
*6
$4
SCAN
${{cursor.length}}
{{cursor}}
$5
MATCH
${{pattern.length}}
{{pattern}}
$5
COUNT
${{count.length}}
{{count}}

Template Variables

cursor
游标,从 0 开始,返回 0 表示迭代完成
pattern
(可选):匹配模式 user:*
count
(可选):每次返回的大致数量 10

Response Parser

Format
raw
Line Wrapping
No
Append Newline
No
Show Timestamp
No
Clear on Execute
No
Scroll to Bottom
No