src/Batch/Batch.php
public function isCached($providerName, $query)
    {
        if (null === $this->cache) {
            return false;
        }

        $item = $this->cache->getItem($this->getCacheKey($providerName, $query));

        if ($item->isHit()) {
            return $item->get();
        }

        return false;
    }
public function isCached($providerName, $query)
    {
        if (null === $this->cache) {
            return false;
        }

        $item = $this->cache->getItem($this->getCacheKey($providerName, $query));

        if ($item->isHit()) {
            return $item->get();
        }

        return false;
    }
public function isCached ( $ providerName , $ query ) { if ( null === $ this -> cache ) { return false ; } $ item = $ this -> cache -> getItem ( $ this -> getCacheKey ( $ providerName , $ query ) ) ; if ( $ item -> isHit ( ) ) { return $ item -> get ( ) ; } return false ; }
Check against the cache instance if any.

@param string $providerName The name of the provider.
@param string $query        The query string.

@return boolean|BatchGeocoded The BatchGeocoded object from the query or the cache instance.
Check against the cache instance if any .