public function exists($id)
    {
        try {
            return !!$this->resource->hExists(static::CACHE_KEY, $id);
        } catch (ConnectionException $e) {
            return false;
        }
    }
public function exists($id)
    {
        try {
            return !!$this->resource->hExists(static::CACHE_KEY, $id);
        } catch (ConnectionException $e) {
            return false;
        }
    }
public function exists ( $ id ) { try { return ! ! $ this -> resource -> hExists ( static :: CACHE_KEY , $ id ) ; } catch ( ConnectionException $ e ) { return false ; } }
Returns true if a key exists

@param *string $id

@return bool
Returns true if a key exists