MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / add

Method add

src/shared/utils/cache.ts:16–24  ·  view source on GitHub ↗
(key: string, item: T, millisecondsToCache: number)

Source from the content-addressed store, hash-verified

14 }
15
16 public add(key: string, item: T, millisecondsToCache: number) {
17 this.data.set(
18 key,
19 {
20 data: item,
21 expiryTime: new Date().getTime() + millisecondsToCache,
22 },
23 );
24 }
25
26 public clear() {
27 this.data.clear();

Callers 11

closeTabsFunction · 0.45
getTestSuitesFunction · 0.45
recordAdditionalPidFunction · 0.45
recordLineMethod · 0.45
addStatusFunction · 0.45
clearSuiteOrDirectoryMethod · 0.45
handleOpenMethod · 0.45
getPubWorkspaceStatusFunction · 0.45

Calls 1

setMethod · 0.80

Tested by

no test coverage detected