phpmemcache

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2021 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

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

func New

func New(servers ...string) (memcache.ServerSelector, error)

New Continum for the given servers. Should be "ip:port".

Types

type ServerList

type ServerList struct {
	Buckets []*bucket
}

ServerList is a virtual bucket ring

func (*ServerList) Each

func (sl *ServerList) Each(func(net.Addr) error) error

func (*ServerList) PickServer

func (sl *ServerList) PickServer(key string) (net.Addr, error)

PickServer returns the server address

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL