MCPcopy Index your code
hub / github.com/epicweb-dev/epic-stack / getAllCacheKeys

Function getAllCacheKeys

app/utils/cache.server.ts:149–157  ·  view source on GitHub ↗
(limit: number)

Source from the content-addressed store, hash-verified

147}
148
149export async function getAllCacheKeys(limit: number) {
150 return {
151 sqlite: cacheDb
152 .prepare('SELECT key FROM cache LIMIT ?')
153 .all(limit)
154 .map((row) => (row as { key: string }).key),
155 lru: [...lru.keys()],
156 }
157}
158
159export async function searchCacheKeys(search: string, limit: number) {
160 return {

Callers 1

loaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected