redisclient

package
v0.0.0-...-e38cb6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 InitClient(cfg *config.Redis) *Client

func InitClientWithProm

func InitClientWithProm(cfg *config.Redis, promClient **broccoliprometheus.Prom) *Client

func (*Client) GetCli

func (rds *Client) GetCli() *redis.Client

func (*Client) Reload

func (rds *Client) Reload(cfg *config.Redis)

func (*Client) ZDel

func (rds *Client) ZDel(key string) *redis.IntCmd

func (*Client) ZExists

func (rds *Client) ZExists(key string) *redis.IntCmd

func (*Client) ZExpire

func (rds *Client) ZExpire(key string, expiration time.Duration) *redis.BoolCmd

func (*Client) ZGet

func (rds *Client) ZGet(key string) *redis.StringCmd

func (*Client) ZIncr

func (rds *Client) ZIncr(key string) *redis.IntCmd

func (*Client) ZSet

func (rds *Client) ZSet(key string, value interface{}, expiration time.Duration) *redis.StatusCmd

func (*Client) ZSetNX

func (rds *Client) ZSetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd

func (*Client) ZSetRange

func (rds *Client) ZSetRange(key string, offset int64, value string) *redis.IntCmd

func (*Client) ZTTL

func (rds *Client) ZTTL(key string) *redis.DurationCmd

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) ZDel

func (rds *ClusterClientClient) ZDel(key string) *redis.IntCmd

func (*ClusterClientClient) ZExists

func (rds *ClusterClientClient) ZExists(key string) *redis.IntCmd

func (*ClusterClientClient) ZExpire

func (rds *ClusterClientClient) ZExpire(key string, expiration time.Duration) *redis.BoolCmd

func (*ClusterClientClient) ZGet

func (rds *ClusterClientClient) ZGet(key string) *redis.StringCmd

func (*ClusterClientClient) ZIncr

func (rds *ClusterClientClient) ZIncr(key string) *redis.IntCmd

func (*ClusterClientClient) ZSet

func (rds *ClusterClientClient) ZSet(key string, value interface{}, expiration time.Duration) *redis.StatusCmd

func (*ClusterClientClient) ZSetNX

func (rds *ClusterClientClient) ZSetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd

func (*ClusterClientClient) ZSetRange

func (rds *ClusterClientClient) ZSetRange(key string, offset int64, value string) *redis.IntCmd

func (*ClusterClientClient) ZTTL

func (rds *ClusterClientClient) ZTTL(key string) *redis.DurationCmd

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL