redis

package
v3.62.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDocs

func ConfigDocs() docs.FieldSpecs

ConfigDocs returns a documentation field spec for fields within a Config.

Types

type Config

type Config struct {
	URL    string      `json:"url" yaml:"url"`
	Kind   string      `json:"kind" yaml:"kind"`
	Master string      `json:"master" yaml:"master"`
	TLS    btls.Config `json:"tls" yaml:"tls"`
}

Config is a config struct for a redis connection.

func NewConfig

func NewConfig() Config

NewConfig returns a Config with default values.

func (Config) Client

func (r Config) Client() (redis.UniversalClient, error)

Client returns a new redis client based on the configuration parameters.

Jump to

Keyboard shortcuts

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