NAME

MojoX::Authentication::Model::SAML2::Hash;

SYNOPSIS

use MojoX::Authentication::Model::SAML2::Hash;

my $cache = MojoX::Authentication::Model::SAML2::Hash;

my $data = {...};
$cache->set($data, $key, $expiration_time);

my $data_out = $cache->get($key);

$cache->wipe($key);

DESCRIPTION

Cache for data, based on a hash local to the process.

INTERFACE

get

my $data = $cache->get($key);

Retrieve an object from the cache, by key.

new

my $cache = MojoX::Authentication::Model::SAML2::Db->new;

Constructor for an object.

set

$cache->set($data, $key, $expiration_time);

Set an element in the cache, with expiration time (expressed as an epoch).

wipe

$cache->wipe($key);

Permanently remove an item from the cache.

ANYTHING ELSE (INCLUDING AUTHOR, COPYRIGHT AND LICENSE)

See documentation for MojoX::Authentication.