File-Cache-Persistent

 view release on metacpan or  search on metacpan

lib/File/Cache/Persistent.pm  view on Meta::CPAN

ignores any changes withing predefined timeout and allows to use cache for
files which were removed after entering the cache.

=head1 DESCRIPTION

This module aims to put caching logic to the background and avoid manually
checking conditions of cache expiration. It also is useful when files are not
available after cache timeout and provides cached version although it is
inevitably outdated.

Access to the data is granted through C<get> method. It transparently reads the
file and caches it if it is needed. By default, raw content of the file is
put to the cache. 

=head2 new

Constructor C<new> creates an instance of caching object. It accepts three
named parameters, each of them are optional.

    my $default_cache = new File::Cache::Persistent(
        prefix  => '/www/data/xsl',



( run in 0.397 second using v1.01-cache-2.11-cpan-0a6323c29d9 )