Cache::Funky::Storage::Memcached - Cache::Funky Memcached Storage.
Memcached Storage for the Cache::Funky manpage
package MyCache; use strict; use Cache::Memcached; use base qw/Cache::Funky/; __PACKAGE__->setup('Storage::Memcached' => { servers => [ '127.0.0.1:12345' ] }); __PACKAGE__->register( 'foo', sub { time } ); 1;
run.pl #!/usr/bin/perl
use strict; use MyCache; use Perl6::Say;
say ( MyCache->foo() ); sleep(3); say ( MyCache->foo() );
MyCache->delete(qw/foo/); say ( MyCache->foo() );
Tomohiro Teranishi <tomohiro.teranishi@gmail.com>