Topic maps, dbm storage (asynchronous)
use TM::Materialized::MLDBM; 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;
This package just implements a materialized map with a \s-1MLDBM\s0 store.
The constructor expects to see the following option(s):
The name of the \s-1DBM\s0 file. It is an error not to specify that.
Alternatively, this can be a \*(C`file:\*(C' \s-1URL\s0.
\s-1TM\s0, TM::Synchronizable::MLDBM
Copyright 200[6], Robert Barta <[email protected]>, 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