| 9 | * @experimental **UNSTABLE**: New API, yet to be vetted. |
| 10 | */ |
| 11 | export interface MemoizationCache<K, V> { |
| 12 | /** Checks whether a value for the given key exists in the cache. */ |
| 13 | has(key: K): boolean; |
| 14 | /** Returns the cached value associated with the given key, if present. */ |
| 15 | get(key: K): V | undefined; |
| 16 | /** Stores a value in the cache under the given key. */ |
| 17 | set(key: K, val: V): unknown; |
| 18 | /** Removes the value associated with the given key from the cache. */ |
| 19 | delete(key: K): unknown; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * The result of a memoized function, as stored in its cache. |
no outgoing calls
no test coverage detected