ObjectCache
Variable: ObjectCache
constObjectCache: {(value,context):void|AnyMethod; (...args): (value,context) =>void|AnyMethod; } &object
Defined in: packages/cache/src/cache.ts:728
Cache decorator using an object-level storage (per instance).
Suitable for encapsulated caches tied to specific objects.
Type Declaration
clear
clear: (
target,propertyKey, ...args) =>void
Parameters
target
object
propertyKey
string
args
...any[]
Returns
void
clearAll
clearAll: (
target,propertyKey?) =>void
Parameters
target
object
propertyKey?
string
Returns
void
garbageCollect
garbageCollect: () =>
void
Returns
void
getStats
getStats: () =>
CacheStats
Returns
resetStats
resetStats: () =>
void
Returns
void