src/Batch/Batch.php
public function cache(BatchGeocoded $geocoded)
    {
        if (isset($this->cache)) {
            $key = $this->getCacheKey($geocoded->getProviderName(), $geocoded->getQuery());
            $item = $this->cache->getItem($key);
            $item->set($geocoded);
            $this->cache->save($item);
        }

        return $geocoded;
    }
public function cache(BatchGeocoded $geocoded)
    {
        if (isset($this->cache)) {
            $key = $this->getCacheKey($geocoded->getProviderName(), $geocoded->getQuery());
            $item = $this->cache->getItem($key);
            $item->set($geocoded);
            $this->cache->save($item);
        }

        return $geocoded;
    }
public function cache ( BatchGeocoded $ geocoded ) { if ( isset ( $ this -> cache ) ) { $ key = $ this -> getCacheKey ( $ geocoded -> getProviderName ( ) , $ geocoded -> getQuery ( ) ) ; $ item = $ this -> cache -> getItem ( $ key ) ; $ item -> set ( $ geocoded ) ; $ this -> cache -> save ( $ item ) ; } return $ geocoded ; }
Cache the BatchGeocoded object.

@param BatchGeocoded $geocoded The BatchGeocoded object to cache.

@return BatchGeocoded The BatchGeocoded object.
Cache the BatchGeocoded object .