redis

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Module is default Redis client
	Module = module.Module{
		{Constructor: NewDefaultConfig},
		{Constructor: NewConnection},
	}
	// ErrEmptyConfig when given empty options
	ErrEmptyConfig = errors.New("redis empty config")
)

Functions

This section is empty.

Types

type Client

type Client = redis.Client

Client alias

func NewConnection added in v0.5.0

func NewConnection(opts *Config) (cache *Client, err error)

New redis client

type Config

type Config = redis.Options

Config alias

func NewDefaultConfig added in v0.5.0

func NewDefaultConfig(v *viper.Viper) *Config

Jump to

Keyboard shortcuts

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