MCPcopy
hub / github.com/npmx-dev/npmx.dev / set

Method set

server/utils/cache/shared.ts:6–6  ·  view source on GitHub ↗
(key: string, value: T, ttl?: number)

Source from the content-addressed store, hash-verified

4export interface CacheAdapter {
5 get<T>(key: string): Promise<T | undefined>
6 set<T>(key: string, value: T, ttl?: number): Promise<void>
7 delete(key: string): Promise<void>
8}

Callers 15

fetchBlueskyAvatarsFunction · 0.65
getPooledResultsFunction · 0.65
buildWeeklyEvolutionFunction · 0.65
buildMonthlyEvolutionFunction · 0.65
buildYearlyEvolutionFunction · 0.65
buildVersionToTagsMapFunction · 0.65
fetchAllPackageVersionsFunction · 0.65
setupObserverFunction · 0.65
setPackageContextOnOpenFunction · 0.65

Implementers 2

RedisCacheAdapterserver/utils/cache/redis.ts
LocalCacheAdapterserver/utils/cache/local.ts

Calls

no outgoing calls

Tested by 2

getPooledResultsFunction · 0.52