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

Method getCacheMetadata

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

Source from the content-addressed store, hash-verified

154 }
155
156 private function getCacheMetadata($option): array
157 {
158 $currentCacheKey = 'csv-' . (string)floor(time() / self::CACHE_TTL_SECONDS);
159 $clientCacheKey = isset($option['cacheKey']) ? trim((string)$option['cacheKey'], '"') : '';
160
161 return [
162 'cacheable' => true,
163 'key' => $currentCacheKey,
164 'notModified' => ($clientCacheKey !== '' && $clientCacheKey === $currentCacheKey),
165 ];
166 }
167
168 private function minimizeRow($selectedColumns, $row)
169 {

Callers 1

readDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected