Documentation ¶
Overview ¶
Memcache consistent hash portable for Go see: memcache_consistent_hash.c https://github.com/php/pecl-caching-memcache/blob/master/memcache_consistent_hash.c
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerList ¶
type ServerList struct {
Buckets []*bucket
}
ServerList is a virtual bucket ring
func (*ServerList) PickServer ¶
func (sl *ServerList) PickServer(key string) (net.Addr, error)
PickServer returns the server address
Click to show internal directories.
Click to hide internal directories.