MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / getCache

Function getCache

packages/frontend/src/controller.tsx:93–102  ·  view source on GitHub ↗
(
        view: T,
    )

Source from the content-addressed store, hash-verified

91 })
92 }
93 function getCache<T extends debug.DevtoolsMainView>(
94 view: T,
95 ): {[K in 'short' | 'long']: CacheDataMap[T][K] | null} {
96 const short = shortCache && shortCache.view === view ? shortCache.data : null
97 shortCache = nextShortCache
98 nextShortCache = null
99 const long = longCache.get(view)
100 longCache.delete(view)
101 return {short, long}
102 }
103
104 return {set: setCacheGetter, get: getCache}
105}

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…