Alzabo::ObjectCache::Sync::BerkeleyDB - Uses a DBM file to sync object caches
use Alzabo::ObjectCache ( store => 'Alzabo::ObjectCache::Store::Memory', sync => 'Alzabo::ObjectCache::Sync::BerkeleyDB', sync_dbm_file => 'somefilename.db', clear_on_startup => 1 );
This class implements object cache syncing between multiple processes using a Berkeley DB file to handle data storage. It implements locking to make sure that there are no race conditions with reading/writing data.
The difference between this module and the Alzabo::ObjectCache::Sync::DB_File module is that module uses the BerkeleyDB Perl module, which can take advantage of the new features available in versions 2 and 3 of the Berkeley DB library. These features allow this module to avoid having to constantly open and close the DBM file. In addition, locking is handled by the Berkeley DB library at a much lower level than would be possible with a different DBM implementation.
Alzabo::ObjectCache::Sync::DB_File
Dave Rolsky, <autarch@urth.org>
To install Alzabo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alzabo
CPAN shell
perl -MCPAN -e shell install Alzabo
For more information on module installation, please visit the detailed CPAN module installation guide.