Catalyst::Plugin::Cache::FileCache - File cache


NAME

Catalyst::Plugin::Cache::FileCache - File cache

Back to Top


SYNOPSIS

    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);

Back to Top


DESCRIPTION

Extends base class with a file cache.

Back to Top


METHODS

cache

Returns an instance of Cache::FileCache

Back to Top


SEE ALSO

the Cache::FileCache manpage, Catalyst.

Back to Top


AUTHOR

Christian Hansen, ch@ngmedia.com Sebastian Riedel sri@oook.de

Back to Top


LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

Back to Top

 Catalyst::Plugin::Cache::FileCache - File cache