The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Object::Store::Disk - backend to disk storage

API

$self->new ("/path/to/dir");

Creates a new Object::Store::Disk backend. "path/to/dir" must be a valid directory and Object::Store::Disk must have permissions. To avoid exploits, Object::Store::Disk dies if you attempt to use anything else than [A-Za-z_-] in an object id.

$self->set ($id => $object);

Saves object $object under id $id.

$self->get ($id);

Returns object $object with id $id.

$self->del ($id);

Removes object with id $id.

$self->list();

Returns a list of objects saved under this backend.