URI::Fetch::SimpleCache - URI::Fetch extension with local cache
This documentation refers to URI::Fetch::SimpleCache version 0.02
#! /usr/bin/perl use strict; use warnings; use URI::Fetch::SimpleCache; my $res = URI::Fetch::SimpleCache->fetch( 'http://search.cpan.org/uploads.rdf', Cache_root => '/tmp/.cache', Cache_default_expires => '60 sec', ) or die URI::Fetch::SimpleCache->errstr; print $res->content;
URI::Fetch::SimpleCache is a URI::Fetch extention. Local cache files are implemented by Cache::FileCache.
This fetch method makes object of Cache::FileCache when there isn't Cache parameter. And, URI::Fetch::fetch is executed. $ENV{'HOME'} is used when there is no Cache parameter.
URI::Fetch, Cache::FileCache
There are no known bugs in this module. Please report problems to Atsushi Kobayashi (<nekokak@cpan.org>) Patches are welcome.
Atsushi Kobayashi, <nekokak@cpan.org>
Copyright (C) 2005 by Atsushi Kobayashi (<nekokak@cpan.org>). All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install URI::Fetch::SimpleCache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI::Fetch::SimpleCache
CPAN shell
perl -MCPAN -e shell install URI::Fetch::SimpleCache
For more information on module installation, please visit the detailed CPAN module installation guide.