Documentation
¶
Index ¶
- Constants
- func Init()
- func NewRedisClients(clients map[RDB]*Client)
- type Client
- func (c Client) ClientGetName() *redis.StringCmd
- func (c Client) Del(keys ...string) *redis.IntCmd
- func (c Client) Dump(key string) *redis.StringCmd
- func (c Client) Echo(message interface{}) *redis.StringCmd
- func (c Client) Exists(keys ...string) *redis.IntCmd
- func (c Client) Expire(key string, expiration time.Duration) *redis.BoolCmd
- func (c Client) ExpireAt(key string, tm time.Time) *redis.BoolCmd
- func (c Client) ExpireGT(key string, expiration time.Duration) *redis.BoolCmd
- func (c Client) ExpireLT(key string, expiration time.Duration) *redis.BoolCmd
- func (c Client) ExpireNX(key string, expiration time.Duration) *redis.BoolCmd
- func (c Client) ExpireTime(key string) *redis.DurationCmd
- func (c Client) ExpireXX(key string, expiration time.Duration) *redis.BoolCmd
- func (c Client) Get(key string) *redis.StringCmd
- func (c Client) HGet(key, field string) *redis.StringCmd
- func (c Client) HGetAll(key string) *redis.MapStringStringCmd
- func (c Client) HMGet(key string, fields ...string) *redis.SliceCmd
- func (c Client) HMSet(key string, fields map[string]interface{}) *redis.BoolCmd
- func (c Client) HSet(key, field string, value interface{}) *redis.IntCmd
- func (c Client) Ping() *redis.StatusCmd
- func (c Client) SAdd(key string, members ...interface{}) *redis.IntCmd
- func (c Client) SIsMember(key string, member interface{}) *redis.BoolCmd
- func (c Client) SMembers(key string) *redis.StringSliceCmd
- func (c Client) SRem(key string, members ...interface{}) *redis.IntCmd
- func (c Client) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (c Client) Unlink(keys ...string) *redis.IntCmd
- func (c Client) ZAddNX(key string, members ...redis.Z) *redis.IntCmd
- func (c Client) ZRange(key string, start, stop int64) *redis.StringSliceCmd
- func (c Client) ZRemRangeByScore(key, min, max string) *redis.IntCmd
- type RDB
Constants ¶
View Source
const DefaultExpiration = 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func NewRedisClients ¶
Types ¶
type Client ¶
var Cache *Client
func NewRedisClient ¶
func (Client) ClientGetName ¶
func (c Client) ClientGetName() *redis.StringCmd
ClientGetName returns the name of the connection.
func (Client) ExpireTime ¶
func (Client) ZRemRangeByScore ¶
Click to show internal directories.
Click to hide internal directories.