Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(buckets []ketama.Bucket) memcache.ServerSelector
func NewWithHash ¶
func NewWithHash(buckets []ketama.Bucket, fn ketama.HashFunc) memcache.ServerSelector
Types ¶
type ServerList ¶
type ServerList struct { Buckets []ketama.Bucket HashFunc ketama.HashFunc }
ServerList is a simple ServerSelector. Its zero value is usable.
func (*ServerList) PickServer ¶
func (sl *ServerList) PickServer(key string) (net.Addr, error)
Click to show internal directories.
Click to hide internal directories.