NAME

App::MatrixTool::ServerIdStore - storage keyed by server name and an ID

DESCRIPTION

Provides a simple flat-file database that stores data keyed by a remote server name and ID field. This is persisted in a human-readable file.

METHODS

list

%id_data = $store->list( server => $name )

Returns a kvlist associating IDs to byte strings of data stored for the given server.

get

$key = $store->get( server => $name, id => $id )

Returns a byte string associated with the given server and ID, or undef if no such is known.

put

$store->put( server => $name, id => $id, data => $bytes )

Stores a byte string associated with the server and ID.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>