NAME
Curse::Cache::File - File Cache
SYNOPSIS
use Curse::Cache::File;
my $cache = Curse::Cache::File->new('Hello!');
$cache->add_chunk('World!');
print $cache->slurp;
DESCRIPTION
Curse::Cache::File is a generic container for files.
ATTRIBUTES
Curse::Cache::File inherits all attributes from Curse::Cache and implements the following new ones.
handle
my $handle = $cache->handle;
$cache = $cache->handle(IO::File->new);
cache_size
my $cache_size = $cache->cache_size;
METHODS
Curse::Cache::File inherits all methods from Curse::Cache 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;