NAME
Mojolicious::Sessions::Store::Backend - Backend interface for Mojolicious::Sessions::Store
VERSION
version 0.01
DESCRIPTION
This class defines the interface that all backends must implement for Mojolicious::Sessions::Store.
Backends provide persistent storage for session data. The session data is a plain hashref (serialized to JSON by the backend).
NAME
Mojolicious::Sessions::Store::Backend - Backend interface for session storage
REQUIRED METHODS
load
my $data = $backend->load($session_id);
Load session data for the given session ID. Returns a hashref on success, undef if the session does not exist or has expired.
save
$backend->save($session_id, $data);
Save session data for the given session ID. $data is a hashref. The backend is responsible for serialization (typically JSON).
delete
$backend->delete($session_id);
Delete the session data for the given session ID.
SEE ALSO
Mojolicious::Sessions::Store, Mojolicious::Sessions::Store::Backend::File
AUTHOR
Daniel Brosseau <dab@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Daniel Brosseau.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.