NAME
TM::Materialized::MLDBM - Topic Maps, DBM Storage
SYNOPSIS
my $tm = new TM::Materialized::MLDBM (file => '/tmp/map.dbm');
# modify the map here.....
# and flush everything onto the file
$tm->sync_out;
# later in this game, get it back from file
my $tm2 = new TM::Materialized::MLDBM (file => '/tmp/map.dbm');
$tm2->sync_in;
DESCRIPTION
This package just implements TM::Resource with a MLDBM store. The methods sync_in
and sync_out
do the obvious things of copying between the DBM file and the in-memory representation. Only during the synchronisation the DBM file is locked. Otherwise the two copies are independent.
The synchronisation is quite performant, certainly faster than using a text representation of the map.
SEE ALSO
AUTHOR INFORMATION
Copyright 200[6], Robert Barta <drrho@cpan.org>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html