文件名称:Cache-Memcached-AnyEvent:AnyEvent兼容的Memcached客户端
文件大小:42KB
文件格式:ZIP
更新时间:2024-06-07 17:27:46
Perl
名称 Cache :: Memcached :: AnyEvent-AnyEvent兼容的Memcached客户端 概要 use Cache::Memcached::AnyEvent; my $memd = Cache::Memcached::AnyEvent->new({ servers => [ '127.0.0.1:11211' ], compress_threshold => 10_000, namespace => 'myapp.', }); $memd->get( $key, sub { my ($value) = @_; warn "got $value for $key"; }); $memd->disconnect(); # use ketama algorithm instead of the traditional one m
【文件预览】:
Cache-Memcached-AnyEvent-master
----.gitignore(230B)
----Changes(4KB)
----t()
--------Util.pm(1KB)
--------run.t(3KB)
--------000_compile.t(217B)
--------CMAETest()
----Build.PL(2KB)
----xt()
--------01_compat.t(1KB)
----.travis.yml(54B)
----LICENSE(18KB)
----tools()
--------benchmark.pl(7KB)
----README.md(7KB)
----META.json(2KB)
----lib()
--------Cache()
----cpanfile(445B)