NAME

Ubic::Persistent - simple hash-to-file persistence object

VERSION

version 1.07

SYNOPSIS

use Ubic::Persistent;
$obj = Ubic::Persistent->new($file); # create object and lock it
$obj->{x} = 'y';
$obj->commit; # atomically save file

$data = Ubic::Persistent->load($file); # { x => 'y' }

METHODS

Ubic::Persistent->load($file)

Class method. Load data from file without obtaining lock.

Ubic::Persistent->new($file)

Construct new persistent object. It will contain all data from file.

Data will be locked all the time this object exists.

$obj->commit()

Write data back on disk.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 28:

=over without closing =back