Documentation
¶
Index ¶
- Constants
- Variables
- func Client(name ...string) *redis.Client
- func Connect(configs map[string]Config)
- func ScanStruct(src map[string]string, dest interface{}) error
- func StructToMapInterface(m interface{}) map[string]interface{}
- type BaseRedis
- func (b *BaseRedis) Decr(key string) (int64, error)
- func (b *BaseRedis) DecrBy(key string, value int64) (int64, error)
- func (b *BaseRedis) Del(key string) error
- func (b *BaseRedis) Exists(key string) bool
- func (b *BaseRedis) Expire(key string, expiration time.Duration) (bool, error)
- func (b *BaseRedis) Get(key string) (string, error)
- func (b *BaseRedis) HDel(key string, field string) error
- func (b *BaseRedis) HExists(key string, field string) (bool, error)
- func (b *BaseRedis) HGet(key string, field string) (string, error)
- func (b *BaseRedis) HGetAll(key string, m interface{}) error
- func (b *BaseRedis) HGetAllMap(key string) (map[string]string, error)
- func (b *BaseRedis) HIncrBy(key string, field string, incr int64) (int64, error)
- func (b *BaseRedis) HMSet(key string, m interface{}) error
- func (b *BaseRedis) HMSetMap(key string, m map[string]interface{}) error
- func (b *BaseRedis) HSet(key string, field string, value interface{}) error
- func (b *BaseRedis) Incr(key string) (int64, error)
- func (b *BaseRedis) IncrBy(key string, value int64) (int64, error)
- func (b *BaseRedis) LPop(key string) (string, error)
- func (b *BaseRedis) LPush(key string, values ...interface{}) (int64, error)
- func (b *BaseRedis) RPop(key string) (string, error)
- func (b *BaseRedis) RPush(key string, values ...interface{}) (int64, error)
- func (b *BaseRedis) SAdd(key string, members ...interface{}) (int64, error)
- func (b *BaseRedis) Set(key, val string) error
- func (b *BaseRedis) SetEX(key, val string, expiration time.Duration) error
- func (b *BaseRedis) TTL(key string) time.Duration
- type Config
Constants ¶
Variables ¶
View Source
var (
ErrScanStructEmptySrc = errors.New("ScanStruct:src must not be empty")
)
View Source
var (
ScanTagName = "json"
)
Functions ¶
func ScanStruct ¶
func StructToMapInterface ¶ added in v1.1.1
func StructToMapInterface(m interface{}) map[string]interface{}
Types ¶
type BaseRedis ¶
func NewBaseRedis ¶ added in v1.0.7
func (*BaseRedis) HGetAllMap ¶
Click to show internal directories.
Click to hide internal directories.