TM::Materialized::MLDBM2 - Topic Maps, DBM Storage (synchronous)
NOTE: THIS PACKAGE IS NOW DEPRECATED NOTE: USE TM::ResourceAble::MLDBM INSTEAD use TM::Materialized::MLDBM2; { my $tm = new TM::Materialized::MLDBM2 (file => '/tmp/map.dbm'); # modify the map here..... } # it goes out of scope here, and all changes are written back automagically # later in the game { my $tm = new TM::Materialized::MLDBM2 (file => '/tmp/map.dbm'); # we are back in business, no sync necessary }
This package just implements TM with a BerkeleyDB store. Unlike TM::Materialized::MLDBM this module does not need explicit synchronisation with the external resource (the DBM file here). It ties content-wise with the DBM file at constructor time and unties at DESTROY time.
The advantage of this storage form is that there is little memory usage. Only those fractions of the map are loaded which are actually needed. If one has very intense interactions with the map (as a query processor has), then this storage technique is not optimal.
The constructor expects a hash with the following keys:
This contains the file name of the DBM file to tie to.
TM, TM::Materialized::MLDBM
Copyright 200[68], 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
To install TM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TM
CPAN shell
perl -MCPAN -e shell install TM
For more information on module installation, please visit the detailed CPAN module installation guide.