(key: string, value: any, ttl?: number)
| 117 | } |
| 118 | |
| 119 | export async function setSystemCache(key: string, value: any, ttl?: number): Promise<void> { |
| 120 | const { systemCache, lockCache } = getCache(); |
| 121 | |
| 122 | if (!(await lockCache.get('system-cache-lock'))) { |
| 123 | await setCacheValue(systemCache, key, value, ttl); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | export async function getSystemCache(key: string): Promise<Record<string, any>> { |
| 128 | const { systemCache } = getCache(); |
nothing calls this directly
no test coverage detected