| Catalyst::Plugin::Cache::FastMmap - Mmap cache |
Catalyst::Plugin::Cache::FastMmap - Mmap cache
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 allows integration of the Cache::FastMmap manpage and Catalyst
This module extends the Catalyst application class with a mmap cache.
Returns an instance of Cache::FastMmap
the Cache::FastMmap manpage, Catalyst.
Christian Hansen, ch@ngmedia.com
Sebastian Riedel sri@oook.de
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
| Catalyst::Plugin::Cache::FastMmap - Mmap cache |