Skip to main content

ProcessCache

@webda/core


Variable: ProcessCache

const ProcessCache: {(value, context): void | AnyMethod; (...args): (value, context) => void | AnyMethod; } & object

Defined in: packages/cache/lib/cache.d.ts:274

Cache decorator using a process-level storage.

Suitable for cross-instance caching within the same Node.js process.

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​

CacheStats

resetStats​

resetStats: () => void

Returns​

void