1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
module Memcached
module Datatypes
RAW_BYTES = 0x00
end
module Errors
NO_ERROR = 0x0000
KEY_NOT_FOUND = 0x0001
KEY_EXISTS = 0x0002
VALUE_TOO_LARGE = 0x0003
INVALID_ARGS = 0x0004
ITEM_NOT_STORED = 0x0005
NON_NUMERIC_VALUE = 0x0006
DISCONNECTED = 0xffff
end
module Commands
GET = 0x00
SET = 0x01
ADD = 0x02
REPLACE = 0x03
DELETE = 0x04
INCREMENT = 0x05
DECREMENT = 0x06
QUIT = 0x07
STAT = 0x10
GETQ = 0x09
SETQ = 0x11
ADDQ = 0x12
DELETEQ = 0x14
NOOP = 0x0a
=begin
Possible values of the one-byte field:
0x00 Get
0x01 Set
0x02 Add
0x03 Replace
0x04 Delete
0x05 Increment
0x06 Decrement
0x07 Quit
0x08 Flush
0x09 GetQ
0x0A No-op
0x0B Version
0x0C GetK
0x0D GetKQ
0x0E Append
0x0F Prepend
0x10 Stat
0x11 SetQ
0x12 AddQ
0x13 ReplaceQ
0x14 DeleteQ
0x15 IncrementQ
0x16 DecrementQ
0x17 QuitQ
0x18 FlushQ
0x19 AppendQ
0x1A PrependQ
=end
end
end
|