redis

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(address string) redisOpt

func ApplyProperties

func ApplyProperties(properties *Properties) redisOpt

func ConnectionTimeout

func ConnectionTimeout(timeout time.Duration) redisOpt

func DB

func DB(db int) redisOpt

func NewClient added in v1.0.3

func NewClient(opts ...redisOpt) (*redis.Client, func(), error)

func Password

func Password(password string) redisOpt

func TLS

func TLS(tls bool) redisOpt

func Username

func Username(username string) redisOpt

Types

type Properties

type Properties struct {
	DSN               string `json:"dsn" yaml:"dsn"`
	ConnectionTimeout int64  `json:"connectionTimeout" yaml:"connectionTimeout"`
}

Jump to

Keyboard shortcuts

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