(cache: Keyv, key: string)
| 159 | } |
| 160 | |
| 161 | export async function getCacheValue(cache: Keyv, key: string): Promise<any> { |
| 162 | const value = await cache.get(key); |
| 163 | if (!value) return undefined; |
| 164 | const decompressed = await decompress(value); |
| 165 | return decompressed; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Store a value in cache with its expiration timestamp for TTL tracking |
no test coverage detected