The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Cache::Memcached::Indexable::Logic::Default - The default logic for Cache::Memcached::Indexable

SYNOPSIS

 use Cache::Memcached::Indexable::Logic::Default;
 use Cache::Memcached::Indexable;
 
 my $logic = Cache::Memcached::Indexable::Logic::Default->new;
 
 my $memd = Cache::Memcached::Indexable->new({
     'servers' => [ "10.0.0.15:11211", "10.0.0.15:11212",
                    "10.0.0.17:11211", [ "10.0.0.17:11211", 3 ] ],
     'debug' => 0,
     'compress_threshold' => 10_000,
 });
 
 $memd->set_logic($logic);

or

 my $memd = Cache::Memcached::Indexable->new({
     'logic' => 'Cache::Memcached::Indexable::Logic::Default',
     'debug' => 0,
     'compress_threshold' => 10_000,
 });

DESCRIPTION

This module is a logic class for Cache::Memcache::Indexable. You don't need to specify this class for logic. It will be use for logic by default.

This module uses 256 patterns of route key. It simply uses hex string of top character of your specified key.

It may be place a disproportionate emphasis on the original key.

AUTHOR

Koichi Taniguchi <taniguchi@livedoor.jp>

LICENSE

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

SEE ALSO

Cache::Memcache::Indexable, Cache::Memcached::Indexable::Logic