public function add($id, $data = 1)
    {
        try {
            return $this->resource->hSet(static::CACHE_KEY, $id, $data);
        } catch (ConnectionException $e) {
            return false;
        }
    }
public function add($id, $data = 1)
    {
        try {
            return $this->resource->hSet(static::CACHE_KEY, $id, $data);
        } catch (ConnectionException $e) {
            return false;
        }
    }
public function add ( $ id , $ data = 1 ) { try { return $ this -> resource -> hSet ( static :: CACHE_KEY , $ id , $ data ) ; } catch ( ConnectionException $ e ) { return false ; } }
Cache an id

@param *string $id

@return bool
Cache an id