public function release_lock($key, $ownerid) {
        if ($this->check_lock_state($key, $ownerid)) {
            return ($this->redis->del($key) !== false);
        }
        return false;
    }
public function release_lock($key, $ownerid) {
        if ($this->check_lock_state($key, $ownerid)) {
            return ($this->redis->del($key) !== false);
        }
        return false;
    }
public function release_lock ( $ key , $ ownerid ) { if ( $ this -> check_lock_state ( $ key , $ ownerid ) ) { return ( $ this -> redis -> del ( $ key ) !== false ) ; } return false ; }
Releases a given lock if the owner information matches.

@see cache_is_lockable
@param string $key Name of the lock to release.
@param string $ownerid Owner information to use.
@return bool True if the lock is released, false if it is not.
Releases a given lock if the owner information matches .