MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / readFreshCachedRecords

Function readFreshCachedRecords

src/Data/RecordData.js:90–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90async function readFreshCachedRecords() {
91 const entry = await readCacheEntry(RECORDS_CACHE_KEY, {legacyFields: ["data"]});
92 return isCacheEntryExpired(entry) ? null : normalizeRecordList(entry.value);
93}
94
95function normalizeRecordList(records) {
96 const recordList = Array.isArray(records) ? records : Object.values(records ?? {});

Callers 1

updateCachedRecordsFunction · 0.85

Calls 3

readCacheEntryFunction · 0.90
isCacheEntryExpiredFunction · 0.90
normalizeRecordListFunction · 0.85

Tested by

no test coverage detected