The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LWP::UserAgent::Cache::Memcached - LWP::UserAgent extension with memcached

SYNOPSIS

  use LWP::UserAgent::Cache::Memcached;
  my %cache_opt = (
    'namespace' => 'lwp-cache',
    'servers' => [ "10.0.0.15:11211", "10.0.0.15:11212", "/var/sock/memcached",
                   "10.0.0.17:11211", [ "10.0.0.17:11211", 3 ] ],
    'compress_threshold' => 10_000,
    'exptime' => 600,
  );

  my $ua = LWP::UserAgent::Cache::Memcached->new(\%cache_opt);
  my $response = $ua->get('http://search.cpan.org/');

DESCRIPTION

LWP::UserAgent::Cache::Memcached is a LWP::UserAgent extention. It handle 'If-Modified-Since' request header with memcached. memcached are implemented by Cache::Memcached.

SEE ALSO

LWP::UserAgent, Cache::Memcached

AUTHOR

This module is derived from LWP::UserAgent::WithCache code, and has been lightly modified since.

Kazuma Shiraiwa

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Kazuma Shiraiwa. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.