NAME

Collection::Memcached - class for collections of data, stored in Memcached.

SYNOPSIS

  use Collection::Memcached;
  use Cache::Memcached;
  $memd = new Cache::Memcached {
  'servers' => [ "127.0.0.1:11211" ],
  'debug' => 0,
  'compress_threshold' => 10_000,
};
$memd->set_compress_threshold(10_000);
$memd->enable_compress(0);
my $collection = new Collection::Memcached:: $memd;
...
my $collection_prefix = new Collection::Memcached:: $memd, 'prefix';

DESCRIPTION

Class for collections of data, stored in Memcached.

METHODS

new <memcached object>[, <prefix>]

Creates a new Collection::Memcached object. Keys transparently autoprefixed with <prefix> if provided.

my $collection_prefix = new Collection::Memcached:: $memd, 'prefix';

SEE ALSO

Collection, README

AUTHOR

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2005-2008 by Zahatski Aliaksandr

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.