Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultURL is the default redis host url.
DefaultURL = "redis://127.0.0.1:6379/0"
)
Variables ¶
This section is empty.
Functions ¶
func URLFromEnv ¶
func URLFromEnv() string
URLFromEnv tries to retrieve the redis url from the environment.
Types ¶
type Client ¶
Client represents a wrapped redis client.
func NewDefaultClient ¶
func NewDefaultClient() *Client
NewDefaultClient returns a wrapped redis client with default configuration.
type ConfigError ¶
type ConfigError struct {
// contains filtered or unexported fields
}
ConfigError happens when the redis connection cannot be configured.
func (ConfigError) Error ¶
func (e ConfigError) Error() string
type GobClient ¶
type GobClient struct {
*Client
}
GobClient represents a wrapped redis client for Gob operations.
func NewGobClient ¶
NewGobClient returns a redis client wrapper for Gob operations.
Click to show internal directories.
Click to hide internal directories.