Cache::Memcached::Indexable::Logic::Default - The default logic for Cache::Memcached::Indexable
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, });
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.
Koichi Taniguchi <taniguchi@livedoor.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Cache::Memcache::Indexable, Cache::Memcached::Indexable::Logic
To install Cache::Memcached::Indexable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Memcached::Indexable
CPAN shell
perl -MCPAN -e shell install Cache::Memcached::Indexable
For more information on module installation, please visit the detailed CPAN module installation guide.