Documentation ¶
Index ¶
- type ClientType
- func (client *ClientType) Decr(key string) int64
- func (client *ClientType) DecrBy(key string, de int64) int64
- func (client *ClientType) Del(key ...string) *redis.Client
- func (client *ClientType) Expire(key string, expiration time.Duration) bool
- func (client *ClientType) Get(key string) (string, error)
- func (client *ClientType) Incr(key string) int64
- func (client *ClientType) IsExist(key string) bool
- func (client *ClientType) Lpop(key string) (string, error)
- func (client *ClientType) Lpush(key string, values ...interface{}) bool
- func (client *ClientType) Lrange(key string, start, stop int64) ([]string, error)
- func (client *ClientType) PSubscribe(channels ...string) *redis.PubSub
- func (client *ClientType) Pipeline() redis.Pipeliner
- func (client *ClientType) Set(key string, value interface{}, expiration time.Duration) *redis.Client
- func (client *ClientType) SetIfNotExist(key string, value interface{}, expiration time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientType ¶
var Client ClientType
func (*ClientType) Decr ¶
func (client *ClientType) Decr(key string) int64
func (*ClientType) Expire ¶
func (client *ClientType) Expire(key string, expiration time.Duration) bool
func (*ClientType) Incr ¶
func (client *ClientType) Incr(key string) int64
func (*ClientType) IsExist ¶
func (client *ClientType) IsExist(key string) bool
func (*ClientType) Lpush ¶
func (client *ClientType) Lpush(key string, values ...interface{}) bool
func (*ClientType) Lrange ¶
func (client *ClientType) Lrange(key string, start, stop int64) ([]string, error)
func (*ClientType) PSubscribe ¶
func (client *ClientType) PSubscribe(channels ...string) *redis.PubSub
func (*ClientType) Pipeline ¶
func (client *ClientType) Pipeline() redis.Pipeliner
func (*ClientType) SetIfNotExist ¶
func (client *ClientType) SetIfNotExist(key string, value interface{}, expiration time.Duration) bool
Click to show internal directories.
Click to hide internal directories.