Collection::Storable - class for collections of data, stored in files.


Collection documentation  | view source Contained in the Collection distribution.

Index


NAME

Top

Collection::Storable - class for collections of data, stored in files.

SYNOPSIS

Top

    use File::Temp qw/ tempfile tempdir /;
    my $tmp_dir = tempdir();
    my $coll = new Collection::Storable:: $tmp_dir

DESCRIPTION

Top

Class for collections of data, stored in files.

METHODS

Top

new <path_to_root_of_store>

Creates a new Collection::Storable object.

      my $coll = new Collection::Storable:: $tmp_dir

key2path <key1>[, <key2>, <keyn> ...]

translate keys to store path

return hash of

    {
      <key1> => <relative path to key>

    }

path2key <path1>[, <path1>, <pathX> ...]

translate store path to key

return hash of

    {
      <relative path to key>=><key1>

    }

SEE ALSO

Top

Collection, README

AUTHOR

Top

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

Top


Collection documentation  | view source Contained in the Collection distribution.