NAME
Curse::Cache - Memory Cache
SYNOPSIS
use Curse::Cache;
my $cache = Curse::Cache->new('Hello!');
$cache->add_chunk('World!');
print $cache->slurp;
DESCRIPTION
Curse::Cache is a generic container for in-memory data.
ATTRIBUTES
cache_size
my $cache_size = $cache->cache_size;
content
my $handle = $cache->content;
$cache = $cache->content('Hello World!');
METHODS
Curse::Cache inherits all methods from Nevermore and implements the following new ones.
add_chunk
$cache = $cache->add_chunk('test 123');
contains
my $contains = $cache->contains('random string');
get_chunk
my $chunk = $cache->get_chunk($offset);
slurp
my $string = $cache->slurp;