Documentation ¶
Index ¶
- func ConfigAdd(path string)
- func NewClientDriver(client *redis.Client) (c cache.Driver, err error)
- func NewClientDriverWithConfigPath(client *redis.Client, path string) (cache.Driver, error)
- func NewClusterDriver(client *redis.ClusterClient) (c cache.Driver, err error)
- func NewClusterDriverWithConfigPath(client *redis.ClusterClient, path string) (cache.Driver, error)
- func NewOptions() (*redis.Options, error)
- func NewOptionsWithPath(path string) (opts *redis.Options, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientDriver ¶
NewClientDriver returns a cache.
func NewClientDriverWithConfigPath ¶
NewClientDriverWithConfigPath returns a cache with options from config path .
func NewClusterDriver ¶
NewClusterDriver returns a cache.
func NewClusterDriverWithConfigPath ¶
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 ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.