NAME

LWP::Simple::WithCache - LWP::Simple with cache

SYNOPSIS

  use LWP::Simple;
  use LWP::Simple::WithCache;

  print get('http://www.leeym.com/');

DESCRIPTION

LWP::Simple::WithCache reassign the $ua used by LWP::Simple to LWP::UserAgent::WithCache, and allow users to use the function provided by LWP::Simple with some cache functionality.

Users can access the cache object by using $LWP::Simple::ua->{cache} to get or set cache_root, namespace, etc.

SEE ALSO

  LWP::Simple
  LWP::UserAgent::WithCache
  Cache::Cache
  Cache::FileCache

AUTHOR

Yen-Ming Lee, <leeym@leeym.com>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Yen-Ming Lee

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.