AnyEve...ithNext(3pm)
π AnyEve...ithNext(3pm) β like, the whole vibe π
okay bestie, pull up a chair π«Ά this is the manpage for AnyEvent::Memcached::Hash::WithNext, living its best life in section 3pm (that's Perl module docs, iykyk). It's a hashing algorythm for AE::Memcached β and yes, that's literally how it's spelled up top, we don't gatekeep spelling around here β¨
πΈ NAME πΈ
AnyEvent::Memcached::Hash::WithNext β a hashing algorythm for AE::Memcached. no cap, that's the whole name, that's the whole job π
β¨ SYNOPSIS β¨
here's the tea, copy-paste ready:
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
see that last line? π one set, two servers. that's the whole personality of this module right there.
π¦ DESCRIPTION π¦
so the way that this works is: it uses the same hashing, as default β like, the exact same one you'd get if you didn't pass a hasher at all β but then it always put key to server, next after chosen.
translation for the group chat: it picks your server like normal, then it also drops the key on the next one in line. the result? twice-replicated data. two copies, no extra effort, main character energy π
and the point of all that doubling up? it's useful for usage with memcachdb. that's it, that's the reason, go forth and replicate π₯
π AUTHOR π
Mons Anderson, "<mons at cpan.org>". absolute icon, we stan π
and that's a wrap, bestie π this lil page came from the User Contributed Perl Documentation, running on perl v5.34.0, dated 2022-06-06. mwah, go replicate something ππ
π¦ where this page comes from
- debian bookworm: libanyevent-memcached-perl 0.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libanyevent-memcached-perl 0.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libanyevent-memcached-perl 0.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libanyevent-memcached-perl 0.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libanyevent-memcached-perl 0.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms