redisx

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPool

func NewPool(config etc.RedisPool) (*redis.Pool, error)

NewPool constructs a redis.Pool for the given RedisPool config params.

The currently supported Redis URL schemas correspond to a Redis server run in standalone and Sentinel modes: - redis://user:password@standalone_host:port/db-number - redis+sentinel://user:password@sentinel_host1:port1,sentinel_host2:port2/monitor-name/db-number

Types

type SentinelURL

type SentinelURL struct {
	Password    string
	Addrs       []string
	MonitorName string
	Database    int
}

func ParseSentinelURL

func ParseSentinelURL(configURL *url.URL) (sentinelURL SentinelURL, err error)

Jump to

Keyboard shortcuts

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