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 the Cache::Memcache::Indexable manpage. 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.
the Cache::Memcache::Indexable manpage, the Cache::Memcached::Indexable::Logic manpage