public function Redis_Lock_BackendInterface::lockMayBeAvailable in Redis 7.3
Check if lock is available for acquire.
Parameters
string $name: Lock to acquire.
Return value
bool
1 call to Redis_Lock_BackendInterface::lockMayBeAvailable()
- Redis_Lock_DefaultBackend::lockWait in lib/
Redis/ Lock/ DefaultBackend.php - Default implementation from actual Drupal core.
2 methods override Redis_Lock_BackendInterface::lockMayBeAvailable()
- Redis_Lock_PhpRedis::lockMayBeAvailable in lib/
Redis/ Lock/ PhpRedis.php - Check if lock is available for acquire.
- Redis_Lock_Predis::lockMayBeAvailable in lib/
Redis/ Lock/ Predis.php - Check if lock is available for acquire.
File
- lib/
Redis/ Lock/ BackendInterface.php, line 27
Class
- Redis_Lock_BackendInterface
- Lock backend interface.
Code
public function lockMayBeAvailable($name);