MCPcopy
hub / github.com/tailwindlabs/prettier-plugin-tailwindcss / ExpiringMap

Interface ExpiringMap

src/expiring-map.ts:1–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface ExpiringMap<K, V> {
2 get(key: K): V | undefined
3 remember(key: K, factory: () => V): V
4 set(key: K, value: V): void
5}
6
7export function expiringMap<K, V>(duration: number): ExpiringMap<K, V> {
8 let map = new Map<K, { value: V; expiration: Date }>()

Callers 15

maybeResolveFunction · 0.80
resolvePrettierConfigDirFunction · 0.80
cacheForDirsFunction · 0.80
getFunction · 0.80
rememberFunction · 0.80
resolveTailwindPathFunction · 0.80
findClosestJsConfigFunction · 0.80
getTailwindConfigFunction · 0.80
maybeResolveFunction · 0.80
resolvePrettierConfigDirFunction · 0.80
cacheForDirsFunction · 0.80
rememberFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…