Documentation ¶
Index ¶
- type Client
- func (c Client) Close() error
- func (c Client) Get(key string) (string, error)
- func (c Client) GetDatabases() (map[uint64]string, error)
- func (c Client) GetInfo(section string) (map[string]string, error)
- func (c Client) HGetAll(key string, value interface{}) error
- func (c Client) HSet(key string, field string, value interface{}) error
- func (c Client) HmSet(key string, kv map[string]interface{}) error
- func (c Client) Pipelining(cmds []PipeLiningCmd) []PipeLiningResult
- func (c Client) Scan(cursor *uint64, match string, limit uint64) ([]string, error)
- func (c Client) Select(db uint64) error
- func (c Client) SerializedLength(key string) (uint64, error)
- func (c Client) Set(key string, value interface{}) error
- func (c Client) Setex(key string, expire int, value interface{}) error
- func (c Client) Ttl(key string) (int64, error)
- type Config
- type PipeLiningCmd
- type PipeLiningResult
- type PoolConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Id string // contains filtered or unexported fields }
func (Client) Pipelining ¶
func (c Client) Pipelining(cmds []PipeLiningCmd) []PipeLiningResult
type Config ¶
type Config struct { Host string `mapstructure:"host"` Port uint16 `mapstructure:"port"` Password string `mapstructure:"password"` Database uint `mapstructure:"database"` Pool *PoolConfig `mapstructure:"pool"` }
type PipeLiningCmd ¶
type PipeLiningCmd struct { Cmd string Args interface{} }
type PipeLiningResult ¶
type PipeLiningResult struct { Reply interface{} Error error }
Click to show internal directories.
Click to hide internal directories.