MojoX::Plugin::ManyCache - Multi-Cache plugin with blocking and non-blocking support
$app->plugin('MojoX::Plugin::ManyCache', names => qw[ cache_one cache_two ], config => { cache_one => { backend => 'MojoX::Plugin::AnyCache::Backend::Redis', server => '127.0.0.1:6379', }, cache_two => { backend => 'MojoX::Plugin::AnyCache::Backend::Redis', server => '10.1.1.1:6379', } } ); $app->cache('cache_one')->set('key', 'value')l
MojoX::Plugin::ManyCache provides an interface to multiple AnyCache instances.
To install MojoX::Plugin::AnyCache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::Plugin::AnyCache
CPAN shell
perl -MCPAN -e shell install MojoX::Plugin::AnyCache
For more information on module installation, please visit the detailed CPAN module installation guide.