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

NAME

MojoX::Plugin::ManyCache - Multi-Cache plugin with blocking and non-blocking support

SYNOPSIS

  $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

DESCRIPTION

MojoX::Plugin::ManyCache provides an interface to multiple AnyCache instances.