Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedRedisDriver = errors.New("unsupported redis driver")
)
Functions ¶
This section is empty.
Types ¶
type KeyStore ¶
func NewRedisKeyStore ¶
func NewRedisKeyStore(cfg RedisConfig) (KeyStore, error)
type RedisConfig ¶
type RedisConfig struct { // Driver is the name of the redis driver to use // // Valid values are: // - "redis" // - "cluster" // - "sentinel" // - "sentinel-cluster" Driver string // ClientName is the name of the redis client ClientName string // Address is the host:port address of the redis server Address string // Addresses is a list of host:port addresses of redis servers Addresses []string // Password is the password to use when connecting to the redis server Password string // Username is the username to use when connecting to the redis server Username string // DB is the redis database to use DB int }
type RedisDriver ¶
type RedisDriver string
const ( RedisDriverRedis RedisDriver = "redis" RedisDriverCluster RedisDriver = "cluster" RedisDriverSentinel RedisDriver = "sentinel" RedisDriverSentinelCluster RedisDriver = "sentinel-cluster" )
Click to show internal directories.
Click to hide internal directories.