2017 © Pedro Peláez
 

library mysql-lock

Provides a locking mechanism using mysql

image

tsfcorp/mysql-lock

Provides a locking mechanism using mysql

  • Wednesday, November 15, 2017
  • by tsfcorp
  • Repository
  • 5 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MySQL lock mechanism for Laravel

Installation

Require this package in your composer.json and update composer. Run the following command:, (*1)

composer require tsfcorp/mysql-lock

After updating composer, the service provider will automatically be registered and enabled, along with the facade, using Auto-Discovery, (*2)

Usage Instructions

MysqlLock library can be used when you don't want two processes to overlap, (*3)

if ( ! MysqlLock::get($lock_name))
{
    // a lock already exists. Please try again later
}

Make sure that at the end of your script to always release the lock:, (*4)

MysqlLock::release($lock_name);

The Versions

15/11 2017

dev-master

9999999-dev

Provides a locking mechanism using mysql

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ionut Antohi
by Dragos Perca

14/11 2017

v0.0.2

0.0.2.0

Provides a locking mechanism using mysql

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ionut Antohi
by Dragos Perca

14/11 2017

v0.0.1

0.0.1.0

Provides a locking mechanism using mysql

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ionut Antohi
by Dragos Perca