NAME

MooseX::WithCache::Backend::Cache::Memcached - Cache::Memcached Backend

SYNOPSIS

package MyObject;
use MooseX::WithCache;
with_cache(
    backend => 'Cache::Memcached'
);

package main;

my $obj = MyObject->new(
    cache => Cache::Memcached->new({ ... });
);

$obj->cache_get($key);
$obj->cache_set($key);
$obj->cache_del($key);
$obj->cache_incr($key);
$obj->cache_decr($key);

# Be careful! 
#    1. this returns a list!
#    2. this method is NOT finalized.
#       its semantics /MIGHT/ be changed!
my @list = $obj->cache_get_multi(@keys);

METHODS

build_cache_decr_method

build_cache_del_method

build_cache_get_method

build_cache_get_multi_method

build_cache_incr_method

build_cache_set_method

install_cache_attr