MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / get

Method get

Parse-Dashboard/configKeyCache.js:6–19  ·  view source on GitHub ↗
(appId, key, ttl, callback)

Source from the content-addressed store, hash-verified

4 }
5
6 async get(appId, key, ttl, callback) {
7 key = `${appId}:${key}`;
8 const cached = this.cache[key];
9 if (cached && cached.expiry > Date.now()) {
10 return cached.value;
11 }
12
13 const value = await Promise.resolve(callback());
14 this.cache[key] = {
15 value,
16 expiry: Date.now() + ttl,
17 };
18 return value;
19 }
20}
21
22module.exports = new KeyCache();

Callers 11

initializeFunction · 0.45
app.jsFile · 0.45
agentHandlerFunction · 0.45
executeDatabaseFunctionFunction · 0.45
getSessionMethod · 0.45
cleanupMethod · 0.45
handleBrowserCrashMethod · 0.45
handleConnectionMethod · 0.45
broadcastMethod · 0.45
createBrowserControlAPIFunction · 0.45

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected