PET::Cache

Abstract cache class.  Gets a Dispatcher instance.

Summary
PET::CacheAbstract cache class.
Functions
new ($disp)Default constructor, gets DISP.
init ()Abstract init.
get ($key)Returns value of key.
set ($key, $value, \%optionsSets value identified by key.
emptyEmpties (clears) the cache.

Functions

new ($disp)

sub new

Default constructor, gets DISP.  You should really not override this.

init ()

sub init

Abstract init.

get ($key)

Returns value of key.

set ($key, $value, \%options

sub set

Sets value identified by key.  Options: ‘epxire’ => ‘1m’

empty

sub empty

Empties (clears) the cache.

sub new
Default constructor, gets DISP.
sub init
Abstract init.
sub set
Sets value identified by key.
sub empty
Empties (clears) the cache.
Close