Catalyst::Plugin::Cache::FastMmap extends the Catalyst application class with a mmap cache.
SYNOPSIS
use Catalyst qw[Cache::FastMmap];
MyApp->config->{cache}->{storage} = '/tmp/cache';
MyApp->config->{cache}->{expires} = 3600;
my $data;
unless ( $data = $c->cache->get('data') ) {
$data = MyApp::Model::Data->retrieve('data');
$c->cache->set( 'data', $data );
}
$c->response->body($data);
This package is part of the Catalyst Cache family. It extends the Catalyst application class with a mmap cache.
METHODS
cache
Returns an instance of Cache::FastMmap
Product's homepage
Requirements:
· Perl