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


Cache-Memcached-Indexable documentation  | view source Contained in the Cache-Memcached-Indexable distribution.

Index


NAME

Top

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

SYNOPSIS

Top

 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

Top

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

Top

Koichi Taniguchi <taniguchi@livedoor.jp>

LICENSE

Top

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

SEE ALSO

Top

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


Cache-Memcached-Indexable documentation  | view source Contained in the Cache-Memcached-Indexable distribution.