Dave Rolsky

NAME

Alzabo::ObjectCache::SDBM_File - Uses an SDBM file to sync object caches

SYNOPSIS

  use Alzabo::ObjectCache( store => 'Alzabo::ObjectCache::Store::Memory',
                           sync  => 'Alzabo::ObjectCache::Sync::SDBM_File',
                           sync_dbm_file => 'somefilename.db',
                           clear_on_startup => 1 );

DESCRIPTION

This class implements object cache syncing between multiple processes using an SDBM_File.

IMPORT PARAMETERS

  • sync_dbm_file => $filename

    This parameter is required. It is the name 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.

  • lock_file => $filename

    This parameter is optional. It defaults to a file named "SDBM_File.lock" in your Alzabo installation's top level directory.

  • 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.

AUTHOR

Dave Rolsky, <autarch@urth.org>