MCPcopy
hub / github.com/simstudioai/sim / get

Function get

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

Source from the content-addressed store, hash-verified

208
209 return {
210 async get(file: UserFile) {
211 try {
212 const key = getFullCacheKey(executionId, file)
213 return await redis.get(key)
214 } catch (error) {
215 logger.warn(`[${options.requestId}] Redis get failed, skipping cache`, error)
216 return null
217 }
218 },
219 async set(file: UserFile, value: string, ttlSeconds: number) {
220 const key = getFullCacheKey(executionId, file)
221 const valueBytes = Buffer.byteLength(value, 'utf8')

Callers

nothing calls this directly

Calls 3

getFullCacheKeyFunction · 0.85
getMethod · 0.65
warnMethod · 0.65

Tested by

no test coverage detected