public function isAttached(CacheItemInterface $item)
    {
        if (isset($this->itemInstances[$item->getKey()])) {
            return \spl_object_hash($item) === \spl_object_hash($this->itemInstances[$item->getKey()]);
        }
        return null;
    }
public function isAttached(CacheItemInterface $item)
    {
        if (isset($this->itemInstances[$item->getKey()])) {
            return \spl_object_hash($item) === \spl_object_hash($this->itemInstances[$item->getKey()]);
        }
        return null;
    }
public function isAttached ( CacheItemInterface $ item ) { if ( isset ( $ this -> itemInstances [ $ item -> getKey ( ) ] ) ) { return \ spl_object_hash ( $ item ) === \ spl_object_hash ( $ this -> itemInstances [ $ item -> getKey ( ) ] ) ; } return null ; }
Returns true if the item exists, is attached and the Spl Hash matches
Returns false if the item exists, is attached and the Spl Hash mismatches
Returns null if the item does not exists

@param \Psr\Cache\CacheItemInterface $item
@return bool|null
Returns true if the item exists is attached and the Spl Hash matches Returns false if the item exists is attached and the Spl Hash mismatches Returns null if the item does not exists