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
| Parameter | Type |
|---|---|
this | CachingHost |
key | unknown |
options | CacheOptions |
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
| Parameter | Type |
|---|---|
this | CachingHost |
key | unknown |
block | () => T |
Returns
Promise<T>