You are here

public function MemcacheLockBackend::release in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/src/MemcacheLockBackend.php \Drupal\memcache\MemcacheLockBackend::release()

Releases the given lock.

Parameters

string $name:

Overrides LockBackendInterface::release

File

modules/memcache/src/MemcacheLockBackend.php, line 83
Contains \Drupal\memcache\MemcacheLockBackend.

Class

MemcacheLockBackend
Defines a Memcache lock backend.

Namespace

Drupal\memcache

Code

public function release($name) {
  $this->memcache
    ->delete($name);

  // We unset unconditionally since caller assumes lock is released anyway.
  unset($this->locks[$name]);
}