The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Alzabo::ObjectCache::Sync::DBM - Base class for syncing modules that use DBM files

SYNOPSIS

  package Alzabo::ObjectCache::Sync::SomeDBMImplementation;

  use base qw( Alzabo::ObjectCache::Sync::DBM );

DESCRIPTION

All that a module that subclasses this module needs to do is implement a dbm method and an optional import method.

INTERFACE

import

This method is where the subclass should do whatever setup it needs to do. This could mean creating a new DBM file if needed and perhaps opening it. It is desirable to do this here if the objects can be shared across multiple processes.

dbm ( $mode, $id, $value, $preserve )

The first argument will be either 'read' or 'write'. The second is the object id. The last two arguments are only relevant when the mode is 'write'.

AUTHOR

Dave Rolsky, <autarch@urth.org>