(file: UserFile)
| 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') |
nothing calls this directly
no test coverage detected