MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / updateCachedRecords

Function updateCachedRecords

src/Data/RecordData.js:82–88  ·  view source on GitHub ↗
(update)

Source from the content-addressed store, hash-verified

80}
81
82export async function updateCachedRecords(update) {
83 const records = await readFreshCachedRecords();
84 if (!records) {
85 return;
86 }
87 await setRecords(update(records));
88}
89
90async function readFreshCachedRecords() {
91 const entry = await readCacheEntry(RECORDS_CACHE_KEY, {legacyFields: ["data"]});

Callers 3

toggleAnonymousFunction · 0.90
setRecordFunction · 0.85
deleteRecordFunction · 0.85

Calls 2

readFreshCachedRecordsFunction · 0.85
setRecordsFunction · 0.85

Tested by

no test coverage detected