src/Operation/Search.php
private function getCacheItemGenerator(SearchCriteriaInterface $searchCriteria)
    {
        try {
            foreach ($searchCriteria->getIdList() as $item) {
                $cacheKey = $this->keyGenerator->generate($item, $searchCriteria);

                yield $item => $this->cacheItemPool->getItem($cacheKey);
            }
        } catch (PsrCacheInvalidArgumentException $e) {
            throw new InvalidCacheKeyException($e->getMessage(), $e->getCode(), $e);
        }
    }
private function getCacheItemGenerator(SearchCriteriaInterface $searchCriteria)
    {
        try {
            foreach ($searchCriteria->getIdList() as $item) {
                $cacheKey = $this->keyGenerator->generate($item, $searchCriteria);

                yield $item => $this->cacheItemPool->getItem($cacheKey);
            }
        } catch (PsrCacheInvalidArgumentException $e) {
            throw new InvalidCacheKeyException($e->getMessage(), $e->getCode(), $e);
        }
    }
private function getCacheItemGenerator ( SearchCriteriaInterface $ searchCriteria ) { try { foreach ( $ searchCriteria -> getIdList ( ) as $ item ) { $ cacheKey = $ this -> keyGenerator -> generate ( $ item , $ searchCriteria ) ; yield $ item => $ this -> cacheItemPool -> getItem ( $ cacheKey ) ; } } catch ( PsrCacheInvalidArgumentException $ e ) { throw new InvalidCacheKeyException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Retrieve cache data generator.

@param SearchCriteriaInterface $searchCriteria

@throws InvalidCacheKeyException

@return void
Retrieve cache data generator .