Cache-Memcached-Sweet
view release on metacpan or search on metacpan
{
"abstract" : "sugary memcached with callbacks ",
"author" : [
"Stig Palmquist <stig@stig.io>"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380",
"license" : [
"mit"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
---
abstract: 'sugary memcached with callbacks '
author:
- 'Stig Palmquist <stig@stig.io>'
build_requires:
Test::More: 0
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380'
license: mit
meta-spec:
lib/Cache/Memcached/Sweet.pm view on Meta::CPAN
} elsif (@_ == 1) {
$v = $memcached->get($k);
return $v;
} else {
return $memcached;
}
}
=head1 NAME
Cache::Memcached::Sweet - sugary memcached with callbacks
=head1 SYNOPSIS
# Reads MEMCACHED_HOST from env, and defaults to localhost:11211 if not set
use Cache::Memcached::Sweet; # exports the subroutine "memcached"
my $value = memcached($key, sub {
return some_expensive_operation($foo, $bar, $baz);
});
( run in 0.722 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )