NAME

Tie::MLDBM::Lock::File - Tie::MLDBM Locking Component Module

SYNOPSIS

use Tie::MLDBM;

tie %hash, 'Tie::MLDBM', {
    'Lock'      =>  'File',
    'Lockfile'  =>  '/tmp/Tie-MLDBM-Lock-File.lock'
} ... or die $!;

DESCRIPTION

This module forms a locking component of the Tie::MLDBM framework, employing synchronisation through use of the flock function. This use of flock is performed with a temporary lock file which is specified in the Tie::MLDBM framework constructor.

The temporary lock file which is used for synchronisation within the Tie::MLDBM framework may be specified by the 'Lockfile' element of the hash reference which is passed in the framework constructor. If this configuration argument is not specified, the file 'Tie-MLDBM-Lock-File.lock' within the current directory is employed.

Note that this module does not unlink created temporary lock files as this could interfere with locking and synchronisation of other instances of the Tie::MLDBM framework.

AUTHOR

Rob Casey <robau@cpan.org>

COPYRIGHT

Copyright 2002 Rob Casey, robau@cpan.org

SEE ALSO

Tie::MLDBM, Fcntl