* Get a value from the cache * @param key - Cache key * @returns The cached value or undefined if not found
(key: string)
| 46 | * @returns The cached value or undefined if not found |
| 47 | */ |
| 48 | async get<T = any>(key: string): Promise<T | undefined> { |
| 49 | // Use local cache as fallback or primary |
| 50 | const value = localCache.get<T>(key); |
| 51 | if (value !== undefined) { |
| 52 | logger.debug(`Cache hit in local cache: ${key}`); |
| 53 | } else { |
| 54 | logger.debug(`Cache miss in local cache: ${key}`); |
| 55 | } |
| 56 | return value; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Delete a value from the cache |
no outgoing calls
no test coverage detected