public function check_lock_state($key, $ownerid) {
        $result = $this->redis->get($key);
        if ($result === $ownerid) {
            return true;
        }
        if ($result === false) {
            return null;
        }
        return false;
    }
public function check_lock_state($key, $ownerid) {
        $result = $this->redis->get($key);
        if ($result === $ownerid) {
            return true;
        }
        if ($result === false) {
            return null;
        }
        return false;
    }
public function check_lock_state ( $ key , $ ownerid ) { $ result = $ this -> redis -> get ( $ key ) ; if ( $ result === $ ownerid ) { return true ; } if ( $ result === false ) { return null ; } return false ; }
Checks a lock with a given name and owner information.

@see cache_is_lockable
@param string $key Name of the lock to check.
@param string $ownerid Owner information to check existing lock against.
@return mixed True if the lock exists and the owner information matches, null if the lock does not
exist, and false otherwise.
Checks a lock with a given name and owner information .