Skip to content

Documentation


Documentation / @blazetrails/actionpack / AbstractController / cache

Function: cache() ​

Call Signature ​

cache<T>(this, key, options, block): Promise<T>

Defined in: packages/actionpack/lib/abstract-controller/caching.ts:97

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
thisCachingHost
keyunknown
optionsCacheOptions
block() => T

Returns ​

Promise<T>

Call Signature ​

cache<T>(this, key, block): Promise<T>

Defined in: packages/actionpack/lib/abstract-controller/caching.ts:103

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
thisCachingHost
keyunknown
block() => T

Returns ​

Promise<T>