Documentation ¶
Index ¶
Constants ¶
View Source
const ( Set = "set" Get = "get" MGet = "mget" MSet = "mset" Keys = "keys" IncrBy = "incrby" DecrBy = "decrby" GetSet = "getset" Append = "append" SetNX = "setnx" StrLen = "strlen" Del = "del" Decr = "decr" Incr = "incr" SetRange = "setrange" MSetNX = "msetnx" )
View Source
const ( // CMDBegin prefix of redis command CMDBegin = '*' // ProxyBegin 0x01 ProxyBegin = 0x01 )
Variables ¶
View Source
var ( // Encoder redis protocol encoder Encoder = newRedisEncoder() // Decoder redis protocol decoder Decoder = newRedisDecoder() )
View Source
var ( ErrNotSupportCommand = []byte("command is not support") ErrInvalidCommandResp = []byte("invalid command") PongResp = []byte("PONG") OKStatusResp = []byte("OK") )
View Source
var ( // ErrIllegalPacket parse err ErrIllegalPacket = errors.New("illegal packet data") )
Functions ¶
func WriteDocArray ¶
WriteDocArray write doc array resp
func WriteFVPairArray ¶
WriteFVPairArray write field value pair array resp
Types ¶
Click to show internal directories.
Click to hide internal directories.