redis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(opts ...Option) (*redis.Client, error)

Types

type Option

type Option func(*options)

func Addr

func Addr(addr string) Option

func DialTimeout

func DialTimeout(d time.Duration) Option

func IdleTimeout

func IdleTimeout(d time.Duration) Option

func MaxConns

func MaxConns(i int) Option

func MinIdleConns

func MinIdleConns(i int) Option

func Password

func Password(psw string) Option

func WithConfig

func WithConfig(cfg *configv1.Redis) Option

Jump to

Keyboard shortcuts

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