Documentation
¶
Overview ¶
Package redis implements a key value store (kv.Store) using redis. For more details, see https://redis.io/
Index ¶
Constants ¶
View Source
const Name = "redis"
Name represents redis's shorthand name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // host:port Addr. Addr string // Optional password. Must match the password specified in the // requirepass server configuration option. Password string // Database to be selected after connecting to the server. DB int // TLS Config to use. When set TLS will be negotiated. TLSConfig *tls.Config }
Options represents options for configuring the redis store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements a the Store interface for redis. https://godoc.org/github.com/go-redis/redis
func New ¶
New creates a new redis cache store. It is up to the operator to make sure that the store's path is writeable.
func (Store) Close ¶
Close closes the client, releasing any open resources.
It is rare to Close a Client, as the Client is meant to be long-lived and shared between many goroutines.
Click to show internal directories.
Click to hide internal directories.