Documentation
¶
Index ¶
- type RedisClient
- func (this *RedisClient) MustBLPop(seconds int, key string) (value string, hasData bool)
- func (this *RedisClient) MustFlushAll()
- func (this *RedisClient) MustGetIgnoreNotExists(k string) (v string)
- func (this *RedisClient) MustHDel(key string, filed string) (ok bool)
- func (this *RedisClient) MustHGetAll(key string) (filedValueMap map[string]string)
- func (this *RedisClient) MustHSetNx(key string, filed string, value string) (ok bool)
- func (this *RedisClient) MustRPush(key string, value string)
- func (this *RedisClient) MustSet(k string, v string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func NewRedisClient(addr string) *RedisClient
func (*RedisClient) MustBLPop ¶
func (this *RedisClient) MustBLPop(seconds int, key string) (value string, hasData bool)
func (*RedisClient) MustFlushAll ¶
func (this *RedisClient) MustFlushAll()
func (*RedisClient) MustGetIgnoreNotExists ¶
func (this *RedisClient) MustGetIgnoreNotExists(k string) (v string)
func (*RedisClient) MustHDel ¶
func (this *RedisClient) MustHDel(key string, filed string) (ok bool)
func (*RedisClient) MustHGetAll ¶
func (this *RedisClient) MustHGetAll(key string) (filedValueMap map[string]string)
func (*RedisClient) MustHSetNx ¶
func (this *RedisClient) MustHSetNx(key string, filed string, value string) (ok bool)
func (*RedisClient) MustRPush ¶
func (this *RedisClient) MustRPush(key string, value string)
func (*RedisClient) MustSet ¶
func (this *RedisClient) MustSet(k string, v string)
Click to show internal directories.
Click to hide internal directories.