MCPcopy Create free account
hub / github.com/Treeki/BirdBridge / getUserCache

Function getUserCache

main.ts:20–27  ·  view source on GitHub ↗
(oauth: OAuth)

Source from the content-addressed store, hash-verified

18
19const userCacheMap = new Map<string, UserCache>();
20function getUserCache(oauth: OAuth): UserCache {
21 let cache = userCacheMap.get(oauth.accessToken);
22 if (cache)
23 return cache;
24 cache = new UserCache(oauth);
25 userCacheMap.set(oauth.accessToken, cache);
26 return cache;
27}
28
29const app = express();
30const upload = multer();

Callers 1

main.tsFile · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected