You are here

private static function LockMemcache::unlockRaw in Ultimate Cron 8.2

Real unlock.

Parameters

string $name: Name of lock.

Return value

boolean Result of unlock.

2 calls to LockMemcache::unlockRaw()
LockMemcache::reLock in src/Lock/LockMemcache.php
Relock.
LockMemcache::unlock in src/Lock/LockMemcache.php
Release lock.

File

src/Lock/LockMemcache.php, line 119

Class

LockMemcache
Class for handling lock functions.

Namespace

Drupal\ultimate_cron\Lock

Code

private static function unlockRaw($name, $lock_id = NULL) {
  $bin = variable_get('ultimate_cron_lock_memcache_bin', 'semaphore');
  if ($lock_id) {
    unset(self::$locks[$lock_id]);
  }
  return dmemcache_delete($name, $bin);
}