Abstract Class yii\mutex\DbMutex
DbMutex is the base class for classes, which relies on database while implementing mutex "lock" mechanism.
|$autoRelease||boolean||Whether all locks acquired in this process (i.e. local locks) must be released automatically before finishing script execution.||yii\mutex\Mutex|
|$db||yii\db\Connection|array|string||The DB connection object or the application component ID of the DB connection.||yii\mutex\DbMutex|
|acquireLock()||This method should be extended by a concrete Mutex implementations. Acquires lock by name.||yii\mutex\Mutex|
|releaseLock()||This method should be extended by a concrete Mutex implementations. Releases lock by given name.||yii\mutex\Mutex|
The DB connection object or the application component ID of the DB connection. After the Mutex object is created, if you want to change this property, you should only assign it with a DB connection object. Starting from version 2.0.2, this can also be a configuration array for creating the object.