LWP::UserAgent::WithCache - LWP::UserAgent extension with local cache


LWP-UserAgent-WithCache documentation  | view source Contained in the LWP-UserAgent-WithCache distribution.

Index


NAME

Top

LWP::UserAgent::WithCache - LWP::UserAgent extension with local cache

SYNOPSIS

Top

  use LWP::UserAgent::WithCache;
  my %cache_opt = (
    'namespace' => 'lwp-cache',
    'cache_root' => File::Spec->catfile(File::HomeDir->my_home, '.cache'),
    'default_expires_in' => 600 );
  my $ua = LWP::UserAgent::WithCache->new(\%cache_opt);
  my $response = $ua->get('http://search.cpan.org/');

DESCRIPTION

Top

LWP::UserAgent::WithCache is a LWP::UserAgent extention. It handle 'If-Modified-Since' request header with local cache file. local cache files are implemented by Cache::FileCache.

METHODS

Top

TBD.

SEE ALSO

Top

LWP::UserAgent, Cache::Cache, Cache::FileCache

AUTHOR

Top

Masayoshi Sekimura <sekimura at gmail dot com>

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


LWP-UserAgent-WithCache documentation  | view source Contained in the LWP-UserAgent-WithCache distribution.