MCPcopy Create free account
hub / github.com/chokcoco/iCSS / set

Method set

website/app/lib/cache.ts:20–26  ·  view source on GitHub ↗
(key: string, data: T, ttl: number = 5 * 60 * 1000)

Source from the content-addressed store, hash-verified

18 }
19
20 set<T>(key: string, data: T, ttl: number = 5 * 60 * 1000): void {
21 this.cache.set(key, {
22 data,
23 timestamp: Date.now(),
24 ttl
25 });
26 }
27
28 get<T>(key: string): T | null {
29 const item = this.cache.get(key);

Callers 6

testCategoriesMethod · 0.80
listCssCategoriesMethod · 0.80
analyzeLabelRelationsMethod · 0.80
getIssuesMethod · 0.80
getIssueMethod · 0.80
getAllArticlesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected