LockFile-Simple
view release on metacpan or search on metacpan
configuration itself.
=item I<hold>
Maximum amount of seconds we may hold a lock. Past that amount of time,
an existing I<lockfile> is removed, being taken for a stale lock. Default
is 3600 seconds. Specifying 0 prevents any forced unlocking.
=item I<max>
Amount of times we retry locking when the file is busy, sleeping I<delay>
seconds between attempts. Defaults to 30.
=item I<nfs>
A boolean flag, false by default. Setting it to true means we could lock
over NFS and therefore the hostname must be included along with the process
ID in the stamp written to the lockfile.
=item I<stale>
I<lock> procedure if it were passed the same parameters.
=item make(I<-key =E<gt> value, -key2 =E<gt> value2, ...>)
The creation routine for the simple lock object. Returns a blessed hash
reference.
=item trylock(I<file>, I<format>)
Same as I<lock> except that it immediately returns false and does not
sleep if the to-be-locked file is busy, i.e. already locked. Any
stale locking file is removed, as I<lock> would do anyway.
Returns a lock hande if the file has been successfully locked.
=item unlock(I<file>)
Unlock the I<file>.
=back
( run in 0.281 second using v1.01-cache-2.11-cpan-87723dcf8b7 )