memcached/protocol/code.rs
1//! [BinaryProtocol](https://github.com/memcached/memcached/wiki/BinaryProtocolRevamped)
2
3pub(super) enum Opcode {
4 Get = 0x00,
5 Set = 0x01,
6 Add = 0x02,
7 Replace = 0x03,
8 Delete = 0x04,
9 Increment = 0x05,
10 Decrement = 0x06,
11 Flush = 0x08,
12 Stat = 0x10,
13 Noop = 0x0a,
14 Version = 0x0b,
15 GetKQ = 0x0d,
16 Append = 0x0e,
17 Prepend = 0x0f,
18 Touch = 0x1c,
19 StartAuth = 0x21,
20}
21
22pub(super) enum Magic {
23 Request = 0x80,
24 Response = 0x81,
25}