public function MemcacheLockBackend::releaseAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/memcache/src/MemcacheLockBackend.php \Drupal\memcache\MemcacheLockBackend::releaseAll()
Releases all locks for the given lock token identifier.
Parameters
string $lockId: (optional) If none given, remove all locks from the current page. Defaults to NULL.
Overrides LockBackendInterface::releaseAll
File
- modules/
memcache/ src/ MemcacheLockBackend.php, line 92 - Contains \Drupal\memcache\MemcacheLockBackend.
Class
- MemcacheLockBackend
- Defines a Memcache lock backend.
Namespace
Drupal\memcacheCode
public function releaseAll($lock_id = NULL) {
foreach ($this->locks as $name => $id) {
$value = $this->memcache
->get($name);
if ($value == $id) {
$this->memcache
->delete($name);
}
}
}