()
| 69 | export const CACHE_KEY_PREFIX = 'extensions-'; |
| 70 | export const CACHE_RESTORE_KEYS = ['extensions-']; |
| 71 | const EXTENSIONS_CONFIG_FILE = 'extensions.json'; |
| 72 | const TRANSFER_CHUNK_SIZE = 1024 * 1024; // 1 MiB |
| 73 | |
| 74 | // Helper to generate cache key from extensions.json |
| 75 | export async function generateCacheKey(): Promise<string> { |
| 76 | const content = await readFile(EXTENSIONS_CONFIG_FILE); |
| 77 | const hash = createHash('sha256').update(content).digest('hex'); |
| 78 | return `${CACHE_KEY_PREFIX}${hash}.tzst`; |
no outgoing calls
no test coverage detected