package
0.0.0-20160104010333-d987058b55eb
Repository: https://github.com/fiorix/go-redis.git
Documentation: pkg.go.dev
# Functions
New returns a redis client using the provided server(s) with equal weight.
NewClient is like New, but returns an error in case of failure.
NewFromSelector returns a new Client using the provided ServerSelector.
# Constants
DefaultTimeout is the default socket read/write timeout.
# Variables
ErrNoServers is returned when no servers are configured or available.
ErrServerError means that a server error occurred.
ErrTimedOut is returned when a Read or Write operation times out.
MaxIdleConnsPerAddr is the maximum number of connections (per server address) idling in the pool.
# Structs
Client is a redis client.
ConnectTimeoutError is the error type used when it takes too long to connect to the desired host.
A PubSubMessage carries redis pub/sub messages for clients that are subscribed to a topic.
ServerInfo stores parsed the server information.
ServerList is a simple ServerSelector.
# Interfaces
ServerSelector is the interface that selects a redis server as a function of the item's key.