Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerSelector ¶
type ServerSelector interface { SetServers(servers ...string) error // PickServer returns the server address that a given item // should be shared onto. PickServer(key string) (net.Addr, error) Each(func(net.Addr) error) error ReturnAddresses() []net.Addr }
ServerSelector is the interface that selects a memcache server as a function of the item's key.
All ServerSelector implementations must be safe for concurrent use by multiple goroutines.
Directories ¶
Path | Synopsis |
---|---|
Package is a golang port of https://github.com/RJ/ketama/tree/master/libketama
|
Package is a golang port of https://github.com/RJ/ketama/tree/master/libketama |
Click to show internal directories.
Click to hide internal directories.