Locker
Table of Contents
Constants
- CONNECTION_NAME = "composite"
Methods
- lock() : bool
- Tries to obtain a lock with a name given by the string $id Supports only Mysql.
- unlock() : bool
- Releases the lock named by the string $id Supports only Mysql
Constants
CONNECTION_NAME
public
mixed
CONNECTION_NAME
= "composite"
Methods
lock()
Tries to obtain a lock with a name given by the string $id Supports only Mysql.
public
static lock(string $id) : bool
Parameters
- $id : string
-
Lock Name.
Return values
bool —Returns true if lock was obtained.
unlock()
Releases the lock named by the string $id Supports only Mysql
public
static unlock(string $id) : bool
Parameters
- $id : string
-
Lock Name.
Return values
bool —Returns true if lock was released.