Jamm\Memory\CouchbaseObject::unlock_key PHP Method

unlock_key() public method

Unlock key, locked by method 'lock_key'
public unlock_key ( KeyAutoUnlocker $auto_unlocker ) : boolean
$auto_unlocker KeyAutoUnlocker
return boolean
    public function unlock_key(KeyAutoUnlocker $auto_unlocker)
    {
        $key = $auto_unlocker->getKey();
        $auto_unlocker->revoke();
        return $this->Couchbase->delete($this->lock_key_prefix . $key);
    }