DDLock::Client

Client library for distributed lock daemon
Download

DDLock::Client Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonathan Steinert
  • Publisher web site:
  • http://search.cpan.org/~hachi/

DDLock::Client Tags


DDLock::Client Description

DDLock::Client is a client library for ddlockd, a distributed lock daemon not entirely unlike a very simplified version of the CPAN module IPC::Locker.This can be used as a drop in replacment for the unreleased DDLockClient class that some of us in the world may be using. Simply replace the class name.SYNOPSIS use DDLock::Client (); my $cl = DDLock::Client->new( servers => ); # Do something that requires locking if ( my $lock = $cl->trylock("foo") ) { ...do some 'foo'-synchronized stuff... } else { die "Failed to lock 'foo': $!"; } # You can either just let $lock go out of scope or explicitly release it: $lock->release;Product's homepage


DDLock::Client Related Software