compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (8)

View Page History
For deleteq with meta use opcode 0xa9.

h2. Get With Meta

{code:none}
Byte/ 0 | 1 | 2 | 3 |
/ | | | |
|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|
+---------------+---------------+---------------+---------------+
0| 0x80 | 0xa0 | 0x00 | 0x05 |
+---------------+---------------+---------------+---------------+
4| 0x14 | 0x00 | 0x00 | 0x00 |
+---------------+---------------+---------------+---------------+
8| 0x00 | 0x00 | 0x00 | 0x05 |
+---------------+---------------+---------------+---------------+
12| 0xde | 0xad | 0xbe | 0xef |
+---------------+---------------+---------------+---------------+
16| 0x00 | 0x00 | 0x00 | 0x00 |
+---------------+---------------+---------------+---------------+
20| 0xca | 0xfe | 0xba | 0xbe |
+---------------+---------------+---------------+---------------+
24| 0xbe | 0xef | 0xca | 0xfe |
+---------------+---------------+---------------+---------------+
48| 0x6d ('m') | 0x79 ('y') | 0x6b ('k') | 0x65 ('e') |
+---------------+---------------+---------------+---------------+
52| 0x79 ('y') |
+---------------+

delete with meta command
Field (offset) (value)
Magic (0) : 0x80
Opcode (1) : 0xa0
Key length (2,3) : 0x0005
Extra length (4) : 0x00
Data type (5) : 0x00
Vbucket (6,7) : 0x0000
Total body (8-11) : 0x00000005
Opaque (12-15): 0xdeadbeef
CAS (16-23): 0xcafebabebeefcafe (Required)
Key (48-52): mykey
{code}

For getq with meta use opcode 0xa1.

h1. Responses

4| 0x18 | 0x00 | 0x00 | 0x00 |
+---------------+---------------+---------------+---------------+
8| 0x00 | 0x00 | 0x00 | 0x1d4 |
+---------------+---------------+---------------+---------------+
12| 0xde | 0xad | 0xbe | 0xef |
40| 0xde | 0xad | 0xba | 0xbe |
+---------------+---------------+---------------+---------------+
44| 0xca | 0xfe | 0xba | 0xbe |
+---------------+---------------+---------------+---------------+
48| 0xde | 0xad | 0xbe | 0xef |
+---------------+---------------+---------------+---------------+

get with meta response
Magic (0) : 0x80
Opcode (1) : 0xa0
Key length (2,3) : 0x00050
Extra length (4) : 0x184
Data type (5) : 0x00
Vbucket (6,7) : 0x0000
Total body (8-11) : 0x0000001d == 0x18 + 5 + 0
Total body (8-11) : 0x00000014 == 0x14 + 0 + 0
Opaque (12-15): 0xdeadbeef
CAS (16-23): 0x0000000000000000
Expiration (32-35): 0x00000000
Seqno (36-43): 0xbeefcafedeadbabe
CAS (44-51): 0xcafebabedeadbeef
{code}