You are here

public function Redis_Lock_Backend_Interface::lockMayBeAvailable in Redis 7.2

Same name and namespace in other branches
  1. 7 lib/Redis/Lock/Backend/Interface.php \Redis_Lock_Backend_Interface::lockMayBeAvailable()

Check if lock is available for acquire.

Parameters

string $name: Lock to acquire.

Return value

bool

1 call to Redis_Lock_Backend_Interface::lockMayBeAvailable()
Redis_Lock_Backend_Default::lockWait in lib/Redis/Lock/Backend/Default.php
Default implementation from actual Drupal core.
2 methods override Redis_Lock_Backend_Interface::lockMayBeAvailable()
Redis_Lock_Backend_PhpRedis::lockMayBeAvailable in lib/Redis/Lock/Backend/PhpRedis.php
Check if lock is available for acquire.
Redis_Lock_Backend_Predis::lockMayBeAvailable in lib/Redis/Lock/Backend/Predis.php
Check if lock is available for acquire.

File

lib/Redis/Lock/Backend/Interface.php, line 27

Class

Redis_Lock_Backend_Interface
Lock backend interface.

Code

public function lockMayBeAvailable($name);