NAME
MojoX::Session::Store - Base class for store
SYNOPSIS
use base 'MojoX::Session::Store';
sub create {
my ($self, $sid, $expires, $data) = @_;
...
return 1;
}
sub update {
my ($self, $sid, $expires, $data) = @_;
...
return 1;
}
sub load {
my ($self, $sid) = @_;
...
return ($expires, $data);
}
sub delete {
my ($self, $sid) = @_;
...
return 1;
}
DESCRIPTION
MojoX::Session::Store is a base class for store objects in MojoX::Session.
METHODS
create
Store session. Returns status.
update
Update session. Returns status.
load
Load session. Returns $expire and $data values.
delete
Delete session. Returns status.