MCPcopy Index your code
hub / github.com/simstudioai/sim / getFileCacheKey

Function getFileCacheKey

apps/sim/lib/uploads/utils/user-file-base64.server.ts:294–302  ·  view source on GitHub ↗
(file: UserFile)

Source from the content-addressed store, hash-verified

292}
293
294function getFileCacheKey(file: UserFile): string {
295 if (file.key) {
296 return `key:${file.key}`
297 }
298 if (file.url) {
299 return `url:${file.url}`
300 }
301 return `id:${file.id}`
302}
303
304function getFullCacheKey(executionId: string | undefined, file: UserFile): string {
305 const fileKey = getFileCacheKey(file)

Callers 4

getMethod · 0.85
setMethod · 0.85
setFunction · 0.85
getFullCacheKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected