redis

package
v1.1.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewClientDriver

func NewClientDriver(client *redis.Client) (c cache.Driver, err error)

NewClientDriver returns a cache.

func NewClientDriverWithConfigPath

func NewClientDriverWithConfigPath(client *redis.Client, path string) (cache.Driver, error)

NewClientDriverWithConfigPath returns a cache with options from config path .

func NewClusterDriver

func NewClusterDriver(client *redis.ClusterClient) (c cache.Driver, err error)

NewClusterDriver returns a cache.

func NewClusterDriverWithConfigPath

func NewClusterDriverWithConfigPath(client *redis.ClusterClient, path string) (cache.Driver, error)

NewClusterDriverWithConfigPath returns a cache with options from config path .

func NewOptions

func NewOptions() (*redis.Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *redis.Options, err error)

NewOptionsWithPath unmarshals a given key path into options and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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