Documentation ¶
Index ¶
- func AppendCmd(s Session, args [][]byte) (redis.Resp, error)
- func AuthCmd(s Session, args [][]byte) (redis.Resp, error)
- func BgsaveCmd(s Session, args [][]byte) (redis.Resp, error)
- func BgsaveToCmd(s Session, args [][]byte) (redis.Resp, error)
- func CompactAllCmd(s Session, args [][]byte) (redis.Resp, error)
- func ConfigCmd(s Session, args [][]byte) (redis.Resp, error)
- func DecrByCmd(s Session, args [][]byte) (redis.Resp, error)
- func DecrCmd(s Session, args [][]byte) (redis.Resp, error)
- func DelCmd(s Session, args [][]byte) (redis.Resp, error)
- func DumpCmd(s Session, args [][]byte) (redis.Resp, error)
- func EchoCmd(s Session, args [][]byte) (redis.Resp, error)
- func ExistsCmd(s Session, args [][]byte) (redis.Resp, error)
- func ExpireAtCmd(s Session, args [][]byte) (redis.Resp, error)
- func ExpireCmd(s Session, args [][]byte) (redis.Resp, error)
- func FlushAllCmd(s Session, args [][]byte) (redis.Resp, error)
- func GetCmd(s Session, args [][]byte) (redis.Resp, error)
- func GetSetCmd(s Session, args [][]byte) (redis.Resp, error)
- func HDelCmd(s Session, args [][]byte) (redis.Resp, error)
- func HExistsCmd(s Session, args [][]byte) (redis.Resp, error)
- func HGetAllCmd(s Session, args [][]byte) (redis.Resp, error)
- func HGetCmd(s Session, args [][]byte) (redis.Resp, error)
- func HIncrByCmd(s Session, args [][]byte) (redis.Resp, error)
- func HIncrByFloatCmd(s Session, args [][]byte) (redis.Resp, error)
- func HKeysCmd(s Session, args [][]byte) (redis.Resp, error)
- func HLenCmd(s Session, args [][]byte) (redis.Resp, error)
- func HMGetCmd(s Session, args [][]byte) (redis.Resp, error)
- func HMSetCmd(s Session, args [][]byte) (redis.Resp, error)
- func HSetCmd(s Session, args [][]byte) (redis.Resp, error)
- func HSetNXCmd(s Session, args [][]byte) (redis.Resp, error)
- func HValsCmd(s Session, args [][]byte) (redis.Resp, error)
- func IncrByCmd(s Session, args [][]byte) (redis.Resp, error)
- func IncrByFloatCmd(s Session, args [][]byte) (redis.Resp, error)
- func IncrCmd(s Session, args [][]byte) (redis.Resp, error)
- func InfoCmd(s Session, args [][]byte) (redis.Resp, error)
- func LIndexCmd(s Session, args [][]byte) (redis.Resp, error)
- func LLenCmd(s Session, args [][]byte) (redis.Resp, error)
- func LPopCmd(s Session, args [][]byte) (redis.Resp, error)
- func LPushCmd(s Session, args [][]byte) (redis.Resp, error)
- func LPushXCmd(s Session, args [][]byte) (redis.Resp, error)
- func LRangeCmd(s Session, args [][]byte) (redis.Resp, error)
- func LSetCmd(s Session, args [][]byte) (redis.Resp, error)
- func LTrimCmd(s Session, args [][]byte) (redis.Resp, error)
- func MGetCmd(s Session, args [][]byte) (redis.Resp, error)
- func MSetCmd(s Session, args [][]byte) (redis.Resp, error)
- func MSetNXCmd(s Session, args [][]byte) (redis.Resp, error)
- func PExpireAtCmd(s Session, args [][]byte) (redis.Resp, error)
- func PExpireCmd(s Session, args [][]byte) (redis.Resp, error)
- func PSetEXCmd(s Session, args [][]byte) (redis.Resp, error)
- func PSyncCmd(s Session, args [][]byte) (redis.Resp, error)
- func PTTLCmd(s Session, args [][]byte) (redis.Resp, error)
- func PersistCmd(s Session, args [][]byte) (redis.Resp, error)
- func PingCmd(s Session, args [][]byte) (redis.Resp, error)
- func RPopCmd(s Session, args [][]byte) (redis.Resp, error)
- func RPushCmd(s Session, args [][]byte) (redis.Resp, error)
- func RPushXCmd(s Session, args [][]byte) (redis.Resp, error)
- func Register(name string, f CommandFunc)
- func RegisterArrayReply(name string, f CommandArrayFunc)
- func RegisterBulkReply(name string, f CommandBulkStringFunc)
- func RegisterIntReply(name string, f CommandIntFunc)
- func RegisterOKReply(name string, f CommandOKFunc)
- func RegisterStringReply(name string, f CommandSimpleStringFunc)
- func ReplConfCmd(s Session, args [][]byte) (redis.Resp, error)
- func RestoreCmd(s Session, args [][]byte) (redis.Resp, error)
- func RoleCmd(s Session, args [][]byte) (redis.Resp, error)
- func SAddCmd(s Session, args [][]byte) (redis.Resp, error)
- func SCardCmd(s Session, args [][]byte) (redis.Resp, error)
- func SIsMemberCmd(s Session, args [][]byte) (redis.Resp, error)
- func SMembersCmd(s Session, args [][]byte) (redis.Resp, error)
- func SPopCmd(s Session, args [][]byte) (redis.Resp, error)
- func SRandMemberCmd(s Session, args [][]byte) (redis.Resp, error)
- func SRemCmd(s Session, args [][]byte) (redis.Resp, error)
- func SelectCmd(s Session, args [][]byte) (redis.Resp, error)
- func SetBitCmd(s Session, args [][]byte) (redis.Resp, error)
- func SetCmd(s Session, args [][]byte) (redis.Resp, error)
- func SetEXCmd(s Session, args [][]byte) (redis.Resp, error)
- func SetNXCmd(s Session, args [][]byte) (redis.Resp, error)
- func SetRangeCmd(s Session, args [][]byte) (redis.Resp, error)
- func ShutdownCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlaveOfCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsHashKeyCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsInfoCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsMgrtOneCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsMgrtSlotCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsMgrtTagOneCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsMgrtTagSlotCmd(s Session, args [][]byte) (redis.Resp, error)
- func SlotsRestoreCmd(s Session, args [][]byte) (redis.Resp, error)
- func SyncCmd(s Session, args [][]byte) (redis.Resp, error)
- func TTLCmd(s Session, args [][]byte) (redis.Resp, error)
- func TypeCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZAddCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZCardCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZCountCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZGetAllCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZIncrByCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZLexCountCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRangeByLexCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRangeByScoreCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRangeCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRankCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRemCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRemRangeByLexCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRemRangeByRankCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRemRangeByScoreCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRevRangeByLexCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRevRangeByScoreCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRevRangeCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZRevRankCmd(s Session, args [][]byte) (redis.Resp, error)
- func ZScoreCmd(s Session, args [][]byte) (redis.Resp, error)
- type CommandArrayFunc
- type CommandBulkStringFunc
- type CommandFunc
- type CommandIntFunc
- type CommandOKFunc
- type CommandSimpleStringFunc
- type Config
- type Handler
- type Server
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpireAtCmd ¶
EXPIREAT key timestamp
func HIncrByCmd ¶
HINCRBY key field delta
func HIncrByFloatCmd ¶
HINCRBYFLOAT key field delta
func IncrByFloatCmd ¶
INCRBYFLOAT key delta
func PExpireAtCmd ¶
PEXPIREAT key timestamp
func PExpireCmd ¶
PEXPIRE key milliseconds
func Register ¶
func Register(name string, f CommandFunc)
func RegisterArrayReply ¶
func RegisterArrayReply(name string, f CommandArrayFunc)
func RegisterBulkReply ¶
func RegisterBulkReply(name string, f CommandBulkStringFunc)
func RegisterIntReply ¶
func RegisterIntReply(name string, f CommandIntFunc)
func RegisterOKReply ¶
func RegisterOKReply(name string, f CommandOKFunc)
func RegisterStringReply ¶
func RegisterStringReply(name string, f CommandSimpleStringFunc)
func ReplConfCmd ¶
REPLCONF listening-port port / ack sync-offset
func RestoreCmd ¶
RESTORE key ttlms value
func SIsMemberCmd ¶
SISMEMBER key member
func SRandMemberCmd ¶
SRANDMEMBER key [count]
func SetRangeCmd ¶
SETRANGE key offset value
func SlotsHashKeyCmd ¶
SLOTSHASHKEY key [key...]
func SlotsInfoCmd ¶
SLOTSINFO [start [count]]
func SlotsMgrtOneCmd ¶
SLOTSMGRTONE host port timeout key
func SlotsMgrtSlotCmd ¶
SLOTSMGRTSLOT host port timeout slot
func SlotsMgrtTagOneCmd ¶
SLOTSMGRTTAGONE host port timeout key
func SlotsMgrtTagSlotCmd ¶
SLOTSMGRTTAGSLOT host port timeout slot
func SlotsRestoreCmd ¶
SLOTSRESTORE key ttlms value [key ttlms value ...]
func ZIncrByCmd ¶
ZINCRBY key delta member
func ZLexCountCmd ¶
ZLEXCOUNT key min max
func ZRangeByLexCmd ¶
ZRANGEBYLEX key start stop [LIMIT offset count]
func ZRangeByScoreCmd ¶
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
func ZRemRangeByLexCmd ¶
ZREMRANGEBYLEX key min max
func ZRemRangeByRankCmd ¶
ZREMRANGEBYRANK key start stop
func ZRemRangeByScoreCmd ¶
ZREMRANGEBYSCORE key min max
func ZRevRangeByLexCmd ¶
ZREVRANGEBYLEX key start stop [LIMIT offset count]
func ZRevRangeByScoreCmd ¶
ZREVRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
func ZRevRangeCmd ¶
ZREVRANGE key start stop [WITHSCORES]
func ZRevRankCmd ¶
ZREVRANK key member
Types ¶
type CommandArrayFunc ¶
return array RESP, or error RESP if err is not nil
type CommandBulkStringFunc ¶
return bulk string RESP, or error RESP if err is not nil
type CommandFunc ¶
return a common RESP
type CommandIntFunc ¶
return int64 RESP, or error RESP if err is not nil
type CommandOKFunc ¶
return OK simple string RESP if error is nil, or error RESP if err is not nil
type CommandSimpleStringFunc ¶
return simple string RESP, or error RESP if err is not nil
type Config ¶
type Config struct { Listen string `toml:"listen_address"` PidFile string `toml:"pid_file"` DumpPath string `toml:"dump_filepath"` ConnTimeout int `toml:"conn_timeout"` SyncFilePath string `toml:"sync_file_path"` SyncFileSize int `toml:"sync_file_size"` SyncBuffSize int `toml:"sync_memory_buffer"` ReplPingSlavePeriod int `toml:"repl_ping_slave_period"` // If empty, we will use memory for replication backlog ReplBacklogFilePath string `toml:"repl_backlog_file_path"` ReplBacklogSize int `toml:"repl_backlog_size"` // If no slaves after time, backlog will be released. // 0 means to no release at all. ReplBacklogTTL int `toml:"repl_backlog_ttl"` Auth string `toml:"auth"` MasterAuth string `toml:"master_auth"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config