MCPcopy Create free account
hub / github.com/Rello/analytics / getCacheMetadata

Method getCacheMetadata

lib/Datasource/ExternalCsv.php:163–173  ·  view source on GitHub ↗
($option)

Source from the content-addressed store, hash-verified

161 }
162
163 private function getCacheMetadata($option): array
164 {
165 $currentCacheKey = 'csv-' . (string)floor(time() / self::CACHE_TTL_SECONDS);
166 $clientCacheKey = isset($option['cacheKey']) ? trim((string)$option['cacheKey'], '"') : '';
167
168 return [
169 'cacheable' => true,
170 'key' => $currentCacheKey,
171 'notModified' => ($clientCacheKey !== '' && $clientCacheKey === $currentCacheKey),
172 ];
173 }
174
175 private function minimizeRow($selectedColumns, $row)
176 {

Callers 1

readDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected