Documentation
¶
Index ¶
- func HideKey(key string) string
- type RedisClient
- func (c *RedisClient) BLPop(key string, timeout time.Duration) *redis.StringSliceCmd
- func (c *RedisClient) Close()
- func (c *RedisClient) Do(args ...interface{}) *redis.Cmd
- func (c *RedisClient) Exists(key string) (bool, error)
- func (c *RedisClient) Flush() error
- func (c *RedisClient) Get(key string) *redis.StringCmd
- func (c *RedisClient) Ping() error
- func (c *RedisClient) RPush(key string, value interface{}) error
- func (c *RedisClient) Set(key string, value interface{}, exTime time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func (*RedisClient) BLPop ¶
func (c *RedisClient) BLPop(key string, timeout time.Duration) *redis.StringSliceCmd
func (*RedisClient) Close ¶
func (c *RedisClient) Close()
func (*RedisClient) Do ¶
func (c *RedisClient) Do(args ...interface{}) *redis.Cmd
func (*RedisClient) Exists ¶
func (c *RedisClient) Exists(key string) (bool, error)
======================= high api =======================
func (*RedisClient) Flush ¶
func (c *RedisClient) Flush() error
func (*RedisClient) Ping ¶
func (c *RedisClient) Ping() error
func (*RedisClient) RPush ¶
func (c *RedisClient) RPush(key string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.