Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
4
export
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
fetchBlueskyAvatars
Function · 0.65
getPooledResults
Function · 0.65
use-command-palette-package-versions.spec.ts
File · 0.65
parseComponentsDeclaration
Function · 0.65
buildWeeklyEvolution
Function · 0.65
buildMonthlyEvolution
Function · 0.65
buildYearlyEvolution
Function · 0.65
buildVersionToTagsMap
Function · 0.65
fetchAllPackageVersions
Function · 0.65
setupObserver
Function · 0.65
registerContextCommandActions
Function · 0.65
setPackageContextOnOpen
Function · 0.65
Implementers
2
RedisCacheAdapter
server/utils/cache/redis.ts
LocalCacheAdapter
server/utils/cache/local.ts
Calls
no outgoing calls
Tested by
2
getPooledResults
Function · 0.52
parseComponentsDeclaration
Function · 0.52