| 144 | * @public |
| 145 | */ |
| 146 | export interface ComputedCache<Data, R extends UnknownRecord> { |
| 147 | /** |
| 148 | * Get the cached data for a record by its ID. |
| 149 | * |
| 150 | * @param id - The ID of the record |
| 151 | * @returns The cached data or undefined if the record doesn't exist |
| 152 | */ |
| 153 | get(id: IdOf<R>): Data | undefined |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Options for creating a computed cache. |
no outgoing calls
no test coverage detected
searching dependent graphs…