Documentation ¶
Overview ¶
a simple and high-performance library for parsing and encoding redis protocal and redis inline command
Index ¶
Constants ¶
View Source
const ( T_SimpleString = '+' T_Error = '-' T_Integer = ':' T_BulkString = '$' T_Array = '*' )
Variables ¶
View Source
var (
CRLF = []byte{'\r', '\n'}
)
Functions ¶
Types ¶
type Command ¶
type Command struct {
Args []string //Args[0] is the command name
}
Command
redis supports two kinds of Command: (Inline Command) and (Array With BulkString)
func ReadCommand ¶
read a command from bufio.Reader
Click to show internal directories.
Click to hide internal directories.