The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CGI::Application::Plugin::Cache::File - Caching support using Cache::File

SYNOPSIS

    use CGI::Application::Plugin::Cache::File;

    #in sub cgiapp_init

    $self->cache_config(
        cache_root      => '/tmp/cache',
        default_expires => '600 seconds'
    );

    #in some runmode

    $self->cache->set('foo','bar');
    my $cached = $self->cache->get('foo');

DESCRIPTION

CGI::Application::Plugin::Cache::File makes it easy to use cached data and be able to share it with different processes.

METHODS

cache_config

This creates the Cache::File instance within CGI::Application. Any arguments are passed on to Cache::File's constructor method. See Cache::File#PROPERTIES for details.

If successful, this function returns the Cache::File instance created.

cache

This returns the Cache::File instance within CGI::Application. You can call any Cache::File instance method on it. See Cache::File for details.

SEE ALSO

CGI::Application, Cache::File, perl(1)

AUTHOR

Job van Achterberg <jkva@cpan.org>

LICENSE

Copyright (C) 2009 Job van Achterberg <jkva@cpan.org>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html