-
-
16 May 2020 22:04:06 UTC
- Distribution: LWP-UserAgent-WithCache
- Module version: 0.13
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (987 / 800 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (3.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE user- Dependencies
- Cache::FileCache
- File::HomeDir
- LWP::UserAgent
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
LWP::UserAgent::WithCache - LWP::UserAgent extension with local cache
SYNOPSIS
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
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
TBD.
SEE ALSO
LWP::UserAgent, Cache::Cache, Cache::FileCache
AUTHOR
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.
Module Install Instructions
To install LWP::UserAgent::WithCache, copy and paste the appropriate command in to your terminal.
cpanm LWP::UserAgent::WithCache
perl -MCPAN -e shell install LWP::UserAgent::WithCache
For more information on module installation, please visit the detailed CPAN module installation guide.