Alzabo::ObjectCache::DBMSync - Uses a DBM file to sync object caches
use Alzabo::ObjectCache( store => 'Alzabo::ObjectCache::MemoryStore', sync => 'Alzabo::ObjectCache::DBMSync', 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.
dbm_file => $filename
This parameter is required. It is the parameter of the file which will be used to store the syncing data. If the file does not exist, it will be created. If it does exist it will not be overwritten.
clear_on_startup => $boolean
If this is true, then a new file is always created on when the module is loaded, overwriting any existing file. This is generally desirable as an existing file may contain spurious entries from previous executions of the program. However, in the interests of safety, this parameter defaults to false.
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.