Jamm\Memory\RedisObject::unlock_key PHP Метод

unlock_key() публичный Метод

Unlock key, locked by method 'lock_key'
public unlock_key ( KeyAutoUnlocker $auto_unlocker ) : boolean
$auto_unlocker KeyAutoUnlocker
Результат boolean
    public function unlock_key(KeyAutoUnlocker $auto_unlocker)
    {
        $key = $auto_unlocker->getKey();
        if (empty($key)) {
            $this->ReportError('Empty key in the AutoUnlocker', __LINE__);
            return false;
        }
        $auto_unlocker->revoke();
        return $this->redis->Del($this->lock_key_prefix . $key);
    }