MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / get

Method get

server/utils/cache/shared.ts:5–5  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

3 */
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

resolveAuthorsFunction · 0.65
syncFileFunction · 0.65
getMockForUrlFunction · 0.65
handleFastNpmMetaFunction · 0.65
matchUrlToFixtureFunction · 0.65
requireAuthFunction · 0.65
createMockConnectorAppFunction · 0.65
getNpmAvatarFunction · 0.65
createConnectorAppFunction · 0.65
getPooledResultsFunction · 0.65
Likes.spec.tsFile · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 7

getPooledResultsFunction · 0.52
getTestedComponentsFunction · 0.52
mockOsvApiFunction · 0.52
fetchBadgeFunction · 0.52
fetchVulnerabilitiesFunction · 0.52