IPC::SRLock::Memcached - Set / reset locks using libmemcache
use IPC::SRLock; my $config = { type => q(memcached) }; my $lock_obj = IPC::SRLock->new( $config );
Uses Cache::Memcached to implement a distributed lock manager
This class defines accessors for these attributes:
lockfile
Name of the key to the lock file record. Defaults to _lockfile
_lockfile
servers
An array ref of servers to connect to. Defaults to localhost:11211
localhost:11211
shmfile
Name of the key to the lock table record. Defaults to _shmfile
_shmfile
List the contents of the lock table
Delete a lock from the lock table
Set a lock in the lock table
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2017 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install IPC::SRLock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPC::SRLock
CPAN shell
perl -MCPAN -e shell install IPC::SRLock
For more information on module installation, please visit the detailed CPAN module installation guide.