Documentation ¶
Index ¶
- Variables
- func GetRedisClient() (c db.RedisClient, err error)
- func NewRedisPool() *redis.Pool
- type Client
- func (client *Client) AllKeys() (values []string, err error)
- func (client *Client) BLPop(collection string, timeout int) (value string, err error)
- func (client *Client) BRPop(collection string, timeout int) (value string, err error)
- func (client *Client) BZPopMax(collection string, timeout int) (value string, err error)
- func (client *Client) BZPopMin(collection string, timeout int) (value string, err error)
- func (client *Client) Del(collection string) error
- func (client *Client) Get(collection string) (value string, err error)
- func (client *Client) HDel(collection string, key string) error
- func (client *Client) HGet(collection string, key string) (string, error)
- func (client *Client) HKeys(collection string) (results []string, err error)
- func (client *Client) HScan(collection string) (results map[string]string, err error)
- func (client *Client) HSet(collection string, key string, value string) error
- func (client *Client) Keys(pattern string) (values []string, err error)
- func (client *Client) LLen(collection string) (int, error)
- func (client *Client) LPop(collection string) (string, error)
- func (client *Client) LPush(collection string, value interface{}) error
- func (client *Client) Lock(lockKey string) (value int64, err error)
- func (client *Client) MemoryStats() (stats map[string]int64, err error)
- func (client *Client) Ping() error
- func (client *Client) RPop(collection string) (string, error)
- func (client *Client) RPush(collection string, value interface{}) error
- func (client *Client) Set(collection string, value string) (err error)
- func (client *Client) SetBackoffMaxInterval(interval time.Duration)
- func (client *Client) SetTimeout(timeout int)
- func (client *Client) UnLock(lockKey string, value int64)
- func (client *Client) ZAdd(collection string, score float32, value interface{}) (err error)
- func (client *Client) ZCount(collection string, min string, max string) (count int, err error)
- func (client *Client) ZCountAll(collection string) (count int, err error)
- func (client *Client) ZPopMax(collection string, count int) (results []string, err error)
- func (client *Client) ZPopMaxOne(collection string) (value string, err error)
- func (client *Client) ZPopMin(collection string, count int) (results []string, err error)
- func (client *Client) ZPopMinOne(collection string) (value string, err error)
- func (client *Client) ZScan(collection string, pattern string, count int) (values []string, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var MemoryStatsMetrics = []string{
"peak.allocated",
"total.allocated",
"startup.allocated",
"overhead.total",
"keys.count",
"dataset.bytes",
}
Functions ¶
func GetRedisClient ¶
func GetRedisClient() (c db.RedisClient, err error)
func NewRedisPool ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func (*Client) MemoryStats ¶
func (*Client) SetBackoffMaxInterval ¶
func (*Client) SetTimeout ¶
func (*Client) ZPopMaxOne ¶
func (*Client) ZPopMinOne ¶
Click to show internal directories.
Click to hide internal directories.