handleCacheStrategy
Generic types: | T TData |
Handles cache provided cache strategy. It will skip or restore the builder based on the strategy on the first run and update the cache on every next run.
Presentation
function handleCacheStrategy (
id: string,
strategy?: CacheStrategy <TData, T> | undefined,
valid: boolean = true,
): OperatorFunction <BuilderState <T>, BuilderState <T>>;
Returns
OperatorFunction <BuilderState <T>, BuilderState <T>>
Parameters
Name | Type | Description |
---|---|---|
id | string | |
strategy |
| Cache strategy |
valid | boolean |