Documentation ¶
Index ¶
- func GetRedisPool() (*redis.Pool, string)
- func RedisInit()
- type RedisClient
- func (that *RedisClient) CloseConnect()
- func (that *RedisClient) DelKey() bool
- func (that *RedisClient) DoCMD(cmdname string, arg ...interface{}) (interface{}, error)
- func (that *RedisClient) Flushdb()
- func (that *RedisClient) GetKey() string
- func (that *RedisClient) GetList() interface{}
- func (that *RedisClient) GetValue() interface{}
- func (that *RedisClient) HDel()
- func (that *RedisClient) HExists() bool
- func (that *RedisClient) HGet() interface{}
- func (that *RedisClient) HSet(data interface{})
- func (that *RedisClient) HSetField(name string) *RedisClient
- func (that *RedisClient) HasKey() bool
- func (that *RedisClient) Hincby(n int)
- func (that *RedisClient) Ltrim(start, stop int)
- func (that *RedisClient) SAdd(data interface{})
- func (that *RedisClient) SISMEMBER(data interface{}) bool
- func (that *RedisClient) SMembers() []interface{}
- func (that *RedisClient) SRem(data interface{})
- func (that *RedisClient) SetExValue(data interface{}, timeout int64)
- func (that *RedisClient) SetKey(key string) *RedisClient
- func (that *RedisClient) SetList(data interface{})
- func (that *RedisClient) SetValue(data interface{})
- func (that *RedisClient) UpdateTTL(timeout int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisPool ¶
Types ¶
type RedisClient ¶
func NewRedisCient ¶
func NewRedisCient() *RedisClient
func (*RedisClient) CloseConnect ¶
func (that *RedisClient) CloseConnect()
func (*RedisClient) DelKey ¶
func (that *RedisClient) DelKey() bool
func (*RedisClient) DoCMD ¶
func (that *RedisClient) DoCMD(cmdname string, arg ...interface{}) (interface{}, error)
func (*RedisClient) Flushdb ¶
func (that *RedisClient) Flushdb()
func (*RedisClient) GetKey ¶
func (that *RedisClient) GetKey() string
func (*RedisClient) GetList ¶
func (that *RedisClient) GetList() interface{}
func (*RedisClient) GetValue ¶
func (that *RedisClient) GetValue() interface{}
func (*RedisClient) HDel ¶
func (that *RedisClient) HDel()
func (*RedisClient) HExists ¶
func (that *RedisClient) HExists() bool
func (*RedisClient) HGet ¶
func (that *RedisClient) HGet() interface{}
func (*RedisClient) HSet ¶
func (that *RedisClient) HSet(data interface{})
func (*RedisClient) HSetField ¶
func (that *RedisClient) HSetField(name string) *RedisClient
func (*RedisClient) HasKey ¶
func (that *RedisClient) HasKey() bool
func (*RedisClient) Hincby ¶
func (that *RedisClient) Hincby(n int)
func (*RedisClient) Ltrim ¶
func (that *RedisClient) Ltrim(start, stop int)
func (*RedisClient) SAdd ¶
func (that *RedisClient) SAdd(data interface{})
func (*RedisClient) SISMEMBER ¶
func (that *RedisClient) SISMEMBER(data interface{}) bool
func (*RedisClient) SMembers ¶
func (that *RedisClient) SMembers() []interface{}
func (*RedisClient) SRem ¶
func (that *RedisClient) SRem(data interface{})
func (*RedisClient) SetExValue ¶
func (that *RedisClient) SetExValue(data interface{}, timeout int64)
func (*RedisClient) SetKey ¶
func (that *RedisClient) SetKey(key string) *RedisClient
func (*RedisClient) SetList ¶
func (that *RedisClient) SetList(data interface{})
func (*RedisClient) SetValue ¶
func (that *RedisClient) SetValue(data interface{})
func (*RedisClient) UpdateTTL ¶
func (that *RedisClient) UpdateTTL(timeout int64)
Click to show internal directories.
Click to hide internal directories.