MCPcopy Create free account
hub / github.com/dailydotdev/apps / add

Function add

packages/extension/src/background/noPostCache.ts:23–29  ·  view source on GitHub ↗
(url: string, now = Date.now())

Source from the content-addressed store, hash-verified

21 };
22
23 const add = (url: string, now = Date.now()): void => {
24 cache.delete(url);
25 cache.set(url, now + NO_POST_CACHE_TTL);
26 if (cache.size > NO_POST_CACHE_MAX_SIZE) {
27 cache.delete(cache.keys().next().value as string);
28 }
29 };
30
31 return { has, add };
32};

Callers 1

useAddToolToStackFunction · 0.50

Calls 2

nowMethod · 0.80
nextMethod · 0.65

Tested by

no test coverage detected