getCachedCalculation
@svenvw/fdm-source / fdm-core/src / getCachedCalculation
Function: getCachedCalculation()
getCachedCalculation<
T_Output>(fdm,calculation_hash):Promise<T_Output|null>
Defined in: fdm-core/src/calculator.ts:48
Retrieves a cached calculation result from the database.
Type Parameters
T_Output
T_Output
The expected type of the calculation result.
Parameters
fdm
any
The FDM instance, providing database access.
calculation_hash
string
The unique hash identifying the cached calculation.
Returns
Promise<T_Output | null>
A promise that resolves to the cached result if found, otherwise null.