Daisuke Maki > Cache-Memcached-AnyEvent-0.00020 > Cache::Memcached::AnyEvent::Selector::Ketama

Download:
Cache-Memcached-AnyEvent-0.00020.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Cache-Memcached-AnyEvent-0.00022

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->set_servers( @servernames )

Called when a new server set is given

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

Returns the AnyEvent handle that is responsible for handling $key

syntax highlighting: