Documentation
¶
Index ¶
- type Client
- type Redis
- func (r *Redis) HGet(key, field string) (string, float64, error)
- func (r *Redis) HRem(key string, field ...string) error
- func (r *Redis) HScan(key string, do func(field, token string, ttl float64)) error
- func (r *Redis) HSet(key, field string, value interface{}, maxLen, expire int64) error
- func (r *Redis) Initializer(opts string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Ping() *redis.StatusCmd Close() error Pipelined(fn func(redis.Pipeliner) error) ([]redis.Cmder, error) ZScore(key, field string) *redis.FloatCmd ZRem(key string, members ...interface{}) *redis.IntCmd ZRange(key string, start, stop int64) *redis.StringSliceCmd ZCard(key string) *redis.IntCmd Del(keys ...string) *redis.IntCmd ZRemRangeByRank(key string, start, stop int64) *redis.IntCmd }
Click to show internal directories.
Click to hide internal directories.