Documentation ¶
Index ¶
- Variables
- func Fetch(c *Cluster, key string) ([]byte, error)
- func NewPool(serverAddress, password string) *redis.Pool
- func Pool() *redis.Pool
- func Purge(c *Cluster, key string) error
- func Store(c *Cluster, key string, value []byte, duration time.Duration) error
- type Cluster
- func (c *Cluster) Do(cmd string, args ...interface{}) (interface{}, error)
- func (c *Cluster) HasMoved(reply interface{}, err error) (bool, utils.DialEndpoint, interface{}, error)
- func (c *Cluster) Send(cmd string, args ...interface{}) error
- func (c *Cluster) SendHasMoved(err error) (bool, utils.DialEndpoint, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RedisAddress string RedisPassword string )
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct { Endpoints map[string]utils.DialEndpoint Pools map[utils.DialEndpoint]*redis.Pool // contains filtered or unexported fields }
func NewCluster ¶
func (*Cluster) SendHasMoved ¶
Click to show internal directories.
Click to hide internal directories.