Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachePipel ¶
type RedisClient ¶
type RedisClient interface { Close() error Ping() string CountKeys() (int, error) Get(k string) ([]byte, error) Set(k string, v interface{}, exp time.Duration) (string, error) Del(k ...string) (int64, error) DelKeys(pattern string) (int64, error) LPush(k string, v interface{}) (int64, error) RPop(k string) ([]byte, error) HGet(key string, field string) string HSet(key string, values map[string]string) error HGetAll(key string) map[string]string Exists(key string) bool Expired(key string, d time.Duration) (bool, error) NewPiple() CachePipel Keys(pattern string) ([]string, error) TTL(key string) (time.Duration, error) MGet(keys []string) ([]interface{}, error) }
type RedisConf ¶
type RedisConf struct { Host string `yaml:"host"` Pwd string `yaml:"pass"` DbMap map[string]int `yaml:"dbMap"` }
func (*RedisConf) NewManagerStore ¶ added in v1.4.0
func (*RedisConf) NewRedisDbConn ¶
Click to show internal directories.
Click to hide internal directories.