Redis traffic capture

来自牛奶河Wiki
阿奔讨论 | 贡献2024年9月13日 (五) 17:10的版本 (创建页面,内容为“<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…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

Type Client Server 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 set b 234 *3

$3 set $1 b $3 234

OK +OK  
set 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  
Error cls *1

$3 cls

-ERR unknown command 'cls', with args beginning with: -ERR unknown command 'cls', with args beginning with:  
exit exit       由客户端处理,直接退出。