Redis traffic capture:修订间差异
跳到导航
跳到搜索
(创建页面,内容为“<small> {| class="wikitable" | rowspan="2" |Type | colspan="2" |Client | colspan="2" |Server | rowspan="2" |Memo |- |Original |Send |Display |Receive |- |(connect) | |*2 $7 COMMAND $4 DOCS |(Many, many, much more) |(Many, many, much more) |16400 bytes is not enough |- |get |get a |*2 $3 get $1 a |"1" |$1 1 | |- |get |get d |*2 $3 get $1 d |"jdkd a 234 1ka fslakdf s" |$24 jdkd a 234 1ka fslakdf s | |- |get |get e |*2 $3 get $1 e |(nil) |$-1 | |- |set…”) |
无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第1行: | 第1行: | ||
{| class="wikitable" | {| class="wikitable" | ||
| rowspan="2" |Type | | rowspan="2" |Type | ||
第11行: | 第10行: | ||
|Receive | |Receive | ||
|- | |- | ||
| | | rowspan="3" |get | ||
|get | |||
|get a | |get a | ||
|*2 | |*2 | ||
$3 | $3 | ||
get | get | ||
$1 | $1 | ||
a | a | ||
|"1" | |"1" | ||
第34行: | 第26行: | ||
| | | | ||
|- | |- | ||
| get d | |||
|get d | |||
|*2 | |*2 | ||
$3 | $3 | ||
第46行: | 第37行: | ||
| | | | ||
|- | |- | ||
|get e | |get e | ||
|*2 | |*2 | ||
第57行: | 第47行: | ||
| | | | ||
|- | |- | ||
|set | | rowspan="2" |set | ||
|set b 234 | |set b 234 | ||
|*3 | |*3 | ||
第66行: | 第56行: | ||
$3 | $3 | ||
234 | 234 | ||
|OK | | OK | ||
| +OK | | +OK | ||
| | | | ||
|- | |- | ||
| set c "1 2 ,3 " | |||
|set c "1 2 ,3 " | |||
|*3 | |*3 | ||
$3 | $3 | ||
第83行: | 第72行: | ||
| | | | ||
|- | |- | ||
|Error | | rowspan="2" |Error | ||
|get | |get | ||
|*1 | | *1 | ||
$3 | $3 | ||
get | get | ||
第92行: | 第81行: | ||
| | | | ||
|- | |- | ||
|cls | |cls | ||
|*1 | |*1 | ||
$3 | $3 | ||
cls | cls | ||
| -ERR unknown command 'cls', with args beginning with: | | -ERR unknown command 'cls', with args beginning with: | ||
| -ERR unknown command 'cls', with args beginning with: | | -ERR unknown command 'cls', with args beginning with: | ||
| | | | ||
|- | |- | ||
|exit | | rowspan="2" |exit | ||
|exit | |exit | ||
| | | | ||
第107行: | 第95行: | ||
| | | | ||
|由客户端处理,直接退出。 | |由客户端处理,直接退出。 | ||
|- | |||
|quit | |||
|*1 | |||
$4 | |||
quit | |||
|OK | |||
| +OK | |||
|服务端主动退出。 | |||
|- | |||
|(connect) | |||
| | |||
|*2 | |||
$7 | |||
COMMAND | |||
$4 | |||
DOCS | |||
| 1) "pexpiretime" | |||
2) 1) "summary" | |||
2) "Returns the expiration time of a key as a Unix milliseconds timestamp." | |||
3) "since" | |||
4) "7.0.0" | |||
5) "group" | |||
6) "generic" | |||
7) "complexity" | |||
8) "O(1)" | |||
9) "arguments" | |||
10) 1) 1) "name" | |||
2) "key" | |||
3) "type" | |||
... | |||
|*796 | |||
$11 | |||
pexpiretime | |||
<nowiki>*</nowiki>10 | |||
$7 | |||
summary | |||
$70 | |||
Returns the expiration time of a key as a Unix milliseconds timestamp. | |||
$5 | |||
since | |||
$5 | |||
7.0.0 | |||
$5 | |||
group | |||
$7 | |||
generic | |||
$10 | |||
complexity | |||
$4 | |||
O(1) | |||
$9 | |||
arguments | |||
<nowiki>*</nowiki>1 | |||
<nowiki>*</nowiki>8 | |||
$4 | |||
name | |||
$3 | |||
key | |||
$4 | |||
type | |||
... | |||
|V7版本客户端连接时,发送的第一个指令。更早的版本,发送: | |||
INFO SERVER | |||
COMMAND | |||
(Many, many, much more) | |||
16400 bytes is not enough | |||
|} | |} | ||
[[分类:Develop]] | [[分类:Develop]] | ||
[[分类:Linux]] | [[分类:Linux]] |
2024年9月24日 (二) 16:38的最新版本
Type | Client | Server | Memo | ||
Original | Send | Display | Receive | ||
get | get a | *2
$3 get $1 a |
"1" | $1
1 |
|
get d | *2
$3 get $1 d |
"jdkd a 234 1ka fslakdf s" | $24
jdkd a 234 1ka fslakdf s |
||
get e | *2
$3 get $1 e |
(nil) | $-1 | ||
set | set b 234 | *3
$3 set $1 b $3 234 |
OK | +OK | |
set c "1 2 ,3 " | *3
$3 set $1 c $8 1 2 ,3 |
OK | +OK | ||
Error | get | *1
$3 get |
-ERR wrong number of arguments for 'get' command | -ERR wrong number of arguments for 'get' command | |
cls | *1
$3 cls |
-ERR unknown command 'cls', with args beginning with: | -ERR unknown command 'cls', with args beginning with: | ||
exit | exit | 由客户端处理,直接退出。 | |||
quit | *1
$4 quit |
OK | +OK | 服务端主动退出。 | |
(connect) | *2
$7 COMMAND $4 DOCS |
1) "pexpiretime"
2) 1) "summary" 2) "Returns the expiration time of a key as a Unix milliseconds timestamp." 3) "since" 4) "7.0.0" 5) "group" 6) "generic" 7) "complexity" 8) "O(1)" 9) "arguments" 10) 1) 1) "name" 2) "key" 3) "type" ... |
*796
$11 pexpiretime *10 $7 summary $70 Returns the expiration time of a key as a Unix milliseconds timestamp. $5 since $5 7.0.0 $5 group $7 generic $10 complexity $4 O(1) $9 arguments *1 *8 $4 name $3 key $4 type ... |
V7版本客户端连接时,发送的第一个指令。更早的版本,发送:
INFO SERVER COMMAND (Many, many, much more) 16400 bytes is not enough |