src/Operation/Search.php
private function hasValidCacheItem(CacheItemInterface $cacheItem, array $fieldList) : bool
    {
        $data = $cacheItem->get();
        if (is_null($data)) {
            return false;
        }

        $fieldDiff = array_diff($fieldList, array_keys($data));

        return !$fieldDiff;
    }
private function hasValidCacheItem(CacheItemInterface $cacheItem, array $fieldList) : bool
    {
        $data = $cacheItem->get();
        if (is_null($data)) {
            return false;
        }

        $fieldDiff = array_diff($fieldList, array_keys($data));

        return !$fieldDiff;
    }
private function hasValidCacheItem ( CacheItemInterface $ cacheItem , array $ fieldList ) : bool { $ data = $ cacheItem -> get ( ) ; if ( is_null ( $ data ) ) { return false ; } $ fieldDiff = array_diff ( $ fieldList , array_keys ( $ data ) ) ; return ! $ fieldDiff ; }
Has valid cache item.

@param CacheItemInterface $cacheItem
@param array              $fieldList

@return bool
Has valid cache item .