Documentation ¶
Index ¶
- Constants
- type Client
- func (rds *Client) GetCli() *redis.Client
- func (rds *Client) Reload(cfg *config.Redis)
- func (rds *Client) ZDel(key string) *redis.IntCmd
- func (rds *Client) ZExists(key string) *redis.IntCmd
- func (rds *Client) ZExpire(key string, expiration time.Duration) *redis.BoolCmd
- func (rds *Client) ZGet(key string) *redis.StringCmd
- func (rds *Client) ZIncr(key string) *redis.IntCmd
- func (rds *Client) ZSet(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (rds *Client) ZSetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd
- func (rds *Client) ZSetRange(key string, offset int64, value string) *redis.IntCmd
- func (rds *Client) ZTTL(key string) *redis.DurationCmd
- type ClusterClientClient
- func (rds *ClusterClientClient) GetCli() *redis.ClusterClient
- func (rds *ClusterClientClient) Reload(cfg *config.Redis)
- func (rds *ClusterClientClient) ZDel(key string) *redis.IntCmd
- func (rds *ClusterClientClient) ZExists(key string) *redis.IntCmd
- func (rds *ClusterClientClient) ZExpire(key string, expiration time.Duration) *redis.BoolCmd
- func (rds *ClusterClientClient) ZGet(key string) *redis.StringCmd
- func (rds *ClusterClientClient) ZIncr(key string) *redis.IntCmd
- func (rds *ClusterClientClient) ZSet(key string, value interface{}, expiration time.Duration) *redis.StatusCmd
- func (rds *ClusterClientClient) ZSetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd
- func (rds *ClusterClientClient) ZSetRange(key string, offset int64, value string) *redis.IntCmd
- func (rds *ClusterClientClient) ZTTL(key string) *redis.DurationCmd
Constants ¶
View Source
const (
OPTION_SUC = "success"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func InitClient ¶
func InitClientWithProm ¶
func InitClientWithProm(cfg *config.Redis, promClient **broccoliprometheus.Prom) *Client
type ClusterClientClient ¶
type ClusterClientClient struct {
// contains filtered or unexported fields
}
func InitClusterClient ¶
func InitClusterClient(cfg *config.Redis) *ClusterClientClient
func InitClusterClientWithProm ¶
func InitClusterClientWithProm(cfg *config.Redis, promClient **broccoliprometheus.Prom) *ClusterClientClient
func (*ClusterClientClient) GetCli ¶
func (rds *ClusterClientClient) GetCli() *redis.ClusterClient
func (*ClusterClientClient) Reload ¶
func (rds *ClusterClientClient) Reload(cfg *config.Redis)
func (*ClusterClientClient) ZExists ¶
func (rds *ClusterClientClient) ZExists(key string) *redis.IntCmd
func (*ClusterClientClient) ZGet ¶
func (rds *ClusterClientClient) ZGet(key string) *redis.StringCmd
func (*ClusterClientClient) ZTTL ¶
func (rds *ClusterClientClient) ZTTL(key string) *redis.DurationCmd
Click to show internal directories.
Click to hide internal directories.