Documentation
¶
Index ¶
- func ApplyOptions(opt *redis.Options, options ...Option)
- type Option
- func WithAddr(addr string) Option
- func WithDB(db int) Option
- func WithDialTimeout(dialTimeout time.Duration) Option
- func WithMaxRetries(maxRetries int) Option
- func WithMinIdleConns(minIdleConns int) Option
- func WithPassword(password string) Option
- func WithPoolFIFO(poolFIFO bool) Option
- func WithPoolSize(poolSize int) Option
- func WithPoolTimeout(poolTimeout time.Duration) Option
- func WithReadTimeout(readTimeout time.Duration) Option
- func WithTLSConfig(tlsConfig *tls.Config) Option
- func WithUsername(username string) Option
- func WithWriteTimeout(writeTimeout time.Duration) Option
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOptions ¶
func ApplyOptions(opt *redis.Options, options ...Option)
ApplyOptions applies the given options to the given backend.
Types ¶
type Option ¶
type Option func(*redis.Options)
Option is a function type that can be used to configure the `Redis`.
func WithDialTimeout ¶
WithDialTimeout sets the `DialTimeout` field of the `redis.Options` struct.
func WithMaxRetries ¶
WithMaxRetries sets the `MaxRetries` field of the `redis.Options` struct.
func WithMinIdleConns ¶
WithMinIdleConns sets the `MinIdleConns` field of the `redis.Options` struct.
func WithPassword ¶
WithPassword sets the `Password` field of the `redis.Options` struct.
func WithPoolFIFO ¶
WithPoolFIFO sets the `PoolFIFO` field of the `redis.Options` struct.
func WithPoolSize ¶
WithPoolSize sets the `PoolSize` field of the `redis.Options` struct.
func WithPoolTimeout ¶
WithPoolTimeout sets the `PoolTimeout` field of the `redis.Options` struct.
func WithReadTimeout ¶
WithReadTimeout sets the `ReadTimeout` field of the `redis.Options` struct.
func WithTLSConfig ¶
WithTLSConfig sets the `TLSConfig` field of the `redis.Options` struct.
func WithUsername ¶
WithUsername sets the `Username` field of the `redis.Options` struct.
func WithWriteTimeout ¶
WithWriteTimeout sets the `WriteTimeout` field of the `redis.Options` struct.