NAME

Cache::Memcached::AnyEvent::Selector::Ketama - Ketama Server Selection Algorithm =head1 SYNOPSIS

use Cache::Memcached::AnyEvent;
my $memd = Cache::Memcached::AnyEvent->new({
    ...
    selector_class => 'Ketama',
});

DESCRIPTION

Implements the ketama server selection mechanism,

METHODS

$class->new( memcached => $memd )

Constructor.

$selector->add_server( $server, $handle )

Called when a new server connection is made.

$handle = $selector->get_handle( $key )

Returns the AnyEvent handle that is responsible for handling $key