AnyEvent::Memcached::Hash::WithNext - Hashing algorythm for AE::Memcached
my $memd = AnyEvent::Memcached->new( servers => [ "10.0.0.15:10001", "10.0.0.15:10002", "10.0.0.15:10003" ], # ... hasher => 'AnyEvent::Memcached::Hash::WithNext', ); $memd->set(key => "val", ...) # will put key on 2 servers
Uses the same hashing, as default, but always put key to server, next after choosen. Result is twice-replicated data. Useful for usage with memcachdb
Mons Anderson, <mons at cpan.org>
<mons at cpan.org>
To install AnyEvent::Memcached, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Memcached
CPAN shell
perl -MCPAN -e shell install AnyEvent::Memcached
For more information on module installation, please visit the detailed CPAN module installation guide.