Catalyst::Plugin::Cache::FileCache - (DEPRECATED) File cache
use Catalyst qw[Cache::FileCache]; MyApp->config->{cache}->{storage} = '/tmp'; 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 module has been deprecated in favor of Catalyst::Plugin::Cache. You can configure that module to use a FileCache backend.
Extends base class with a file cache.
Returns an instance of Cache::FileCache
Cache::FileCache
Catalyst::Plugin::Cache, Cache::FileCache, Catalyst.
Christian Hansen, ch@ngmedia.com Sebastian Riedel sri@oook.de
ch@ngmedia.com
sri@oook.de
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
To install Catalyst::Plugin::Cache::FileCache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Cache::FileCache
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Cache::FileCache
For more information on module installation, please visit the detailed CPAN module installation guide.