Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ClusterNodes() *goredis.StringCmd
- func (c *Client) DeleteHash(key string, fields ...string) *goredis.IntCmd
- func (c *Client) DeleteListElements(key string) *goredis.StringCmd
- func (c *Client) DeleteSet(key string) *goredis.StringCmd
- func (c *Client) DeleteString(key string) *goredis.StringCmd
- func (c *Client) Get(key string) *goredis.StringCmd
- func (c *Client) GetHashVals(key string) *goredis.StringSliceCmd
- func (c *Client) GetListRange(key string, start, end int64) *goredis.StringSliceCmd
- func (c *Client) GetSetMembers(key string) *goredis.StringSliceCmd
- func (c *Client) Info() *goredis.StringCmd
- func (c *Client) Set(key, value string) *goredis.StatusCmd
- func (c *Client) SetAdd(key string, members interface{}) *goredis.IntCmd
- func (c *Client) SetHash(key string, values interface{}) *goredis.IntCmd
- func (c *Client) SetListContents(key string, values interface{}) *goredis.IntCmd
- func (c *Client) SetStringWithExpiry(key string, value string, expiration time.Duration) *goredis.StatusCmd
- type RedisConfig
Constants ¶
View Source
const ( ModeStandalone = "standalone" ModeCluster = "cluster" ModeAuto = "auto" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.12
type Client struct {
Connection goredis.UniversalClient
}
func CreateNewRedisClient ¶
func CreateNewRedisClient(config RedisConfig) *Client
func (*Client) ClusterNodes ¶ added in v0.1.12
func (*Client) DeleteHash ¶ added in v0.1.12
func (*Client) DeleteListElements ¶ added in v0.1.12
func (*Client) DeleteString ¶ added in v0.1.12
Works only with Redis >= 6.2.0, use `SetStringWithExpiry` with versions lower than 6.2
func (*Client) GetHashVals ¶ added in v0.1.12
func (c *Client) GetHashVals(key string) *goredis.StringSliceCmd
func (*Client) GetListRange ¶ added in v0.1.12
func (c *Client) GetListRange(key string, start, end int64) *goredis.StringSliceCmd
func (*Client) GetSetMembers ¶ added in v0.1.12
func (c *Client) GetSetMembers(key string) *goredis.StringSliceCmd
func (*Client) SetListContents ¶ added in v0.1.12
type RedisConfig ¶ added in v0.1.12
type RedisConfig struct { Enabled bool Url string Username string Password string OperationMode string MaxActiveConnections int MaxIdleConnections int IdleTimeoutInSeconds int CrashAppOnConnectionFailure bool ConnectRetryIntervalInSeconds int AutoExpireTopLevelKeysAfterSeconds int AppNamespace string }
Click to show internal directories.
Click to hide internal directories.