NAME

MooseX::WithCache::Backend::Cache::FileCache - Cache::FileCache Backend

SYNOPSIS

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

package main;

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

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

# {
#   results => {
#       key1 => $cache_hit_value1,
#       key2 => $cache_hit_value2,
#       ...
#   },
#   missing => [ 'key3', 'key4', 'key5' .... ]
# }

METHODS

build_cache_del_method

build_cache_get_method

build_cache_set_method

install_cache_attr