NAME
MooseX::WithCache::Backend::Cache::FastMmap - Cache::FastMmap Backend
SYNOPSIS
package MyObject;
use MooseX::WithCache;
with_cache(
backend => 'Cache::FastMmap'
);
package main;
my $obj = MyObject->new(
cache => Cache::FastMmap->new({ ... });
);
$obj->cache_get($key);
$obj->cache_set($key);
$obj->cache_del($key);
$obj->cache_incr($key);
$obj->cache_decr($key);
# {
# results => {
# key1 => $cache_hit_value1,
# key2 => $cache_hit_value2,
# ...
# },
# missing => [ 'key3', 'key4', 'key5' .... ]
# }