Documentation ¶
Index ¶
- type RedisClient
- func (r *RedisClient) AppendList(key string, value string) error
- func (r *RedisClient) AppendListWithLimitSize(key string, value string, limit int64) error
- func (r *RedisClient) DelList(key string) (int64, error)
- func (r *RedisClient) Get(key string) string
- func (r *RedisClient) GetList(key string) ([]string, error)
- func (r *RedisClient) Set(key string, value string, timeout int64)
- func (r *RedisClient) SetList(key string, values []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
func NewRedisClient ¶
func NewRedisClient(addr string, passwd string, db int) *RedisClient
func (*RedisClient) AppendList ¶
func (r *RedisClient) AppendList(key string, value string) error
func (*RedisClient) AppendListWithLimitSize ¶
func (r *RedisClient) AppendListWithLimitSize(key string, value string, limit int64) error
func (*RedisClient) Get ¶
func (r *RedisClient) Get(key string) string
Click to show internal directories.
Click to hide internal directories.