Cache::Memcached::Async - Asynchronous version of Cache::Memcached
# just like Cache::Memcached use Cache::Memcached::Async; my $mc = Cache::Memcached::Async->new(servers => [ '127.0.0.1:11211' ]);
This is a stripped-down version of Cache::Memcached that performs gets and sets asynchronously, notifying the caller of completion via the Danga::Socket loop.
It's used almost exactly like Cache::Memcached, except that
set() are allowed a
Multi-gets are not supported.
For all the below methods,
timeout are in seconds, and
callback will be fired upon response from the server.
callback may be undef.
delete all inherit semantics from Cache::Memcached.
decr do not return the new value of the key.
callback is passed the cached value on hit, or undef on miss.
Jonathan Steinert <firstname.lastname@example.org>
Adam Thomason <email@example.com>
Copyright (C) 2010 by Six Apart, Ltd.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.