protected function PhpRedis::getKey in Redis 8
Generate a redis key name for the current lock name.
Parameters
string $name: Lock name.
Return value
string The redis key for the given lock.
3 calls to PhpRedis::getKey()
- PhpRedis::acquire in src/
Lock/ PhpRedis.php - Acquires a lock.
- PhpRedis::lockMayBeAvailable in src/
Lock/ PhpRedis.php - Checks if a lock is available for acquiring.
- PhpRedis::release in src/
Lock/ PhpRedis.php - Releases the given lock.
File
- src/
Lock/ PhpRedis.php, line 40
Class
- PhpRedis
- Predis lock backend implementation.
Namespace
Drupal\redis\LockCode
protected function getKey($name) {
return $this
->getPrefix() . ':lock:' . $name;
}