-
Notifications
You must be signed in to change notification settings - Fork 65
protocol extention
Yang Xiufeng edited this page Aug 10, 2018
·
1 revision
set key flag version value\r\nVALUE\r\n
set test20 0 0 3
123
STORED
注意:在mc中,如果返回 NOT_STORED, 表明数据没有被存储,但不是因为发生错误。这通常意味着add 或 replace命令的条件不成立,或者,项目已经位列删除队列(参考后文的“delete”命令)。
get ??key\r\n
(version, hash, flag, vsz, tstamp, ret_pos & 0xff, ret_pos & 0xffffff00)
get @key\r\n
list of (keyhash64, valuehash, version) or (dir/, hashsummary, count)
get @1111111
VALUE @1111111 0 547
1111111519e88216 16267 2
1111111ec4479f2b 14739 1
111111177b9f1b34 27191 2
1111111802004f13 34405 3
VALUE @1 0 285
0/ 26139 32013349
1/ 44743 32008637
2/ 42628 32007427
3/ 38958 32012676
4/ 11426 32012150
5/ 1000 32007258
6/ 5122 32008053
7/ 25112 32002715
8/ 29772 32011252
9/ 27544 32023079
a/ 19052 32007293
b/ 15480 32012289
c/ 23285 32007203
d/ 38903 32071059
e/ 60256 32018554
f/ 9831 32012401
END
get @@keyhash64\r\n
[a record same as in data file]