(key: string, entry: CacheEntry<T>)
| 97 | } |
| 98 | |
| 99 | function setCacheEntry<T>(key: string, entry: CacheEntry<T>): void { |
| 100 | cache.entries.set(key, entry as CacheEntry<unknown>) |
| 101 | // bust memo for this key |
| 102 | snapshotMemo.delete(key) |
| 103 | notifyKeyListeners(key) |
| 104 | } |
| 105 | |
| 106 | function getCacheEntry<T>(key: string): CacheEntry<T> | undefined { |
| 107 | return cache.entries.get(key) as CacheEntry<T> | undefined |
no test coverage detected