Skip to main content
Version: 4.4

Interface: CacheAdapter#

core.CacheAdapter

Hierarchy#

  • CacheAdapter

Implemented by#

Methods#

clear#

clear(): Promise<void>

Clears all items stored in the cache.

Returns: Promise<void>

Defined in: packages/core/src/cache/CacheAdapter.ts:16


get#

get(name: string): Promise<any>

Gets the items under name key from the cache.

Parameters:#

NameType
namestring

Returns: Promise<any>

Defined in: packages/core/src/cache/CacheAdapter.ts:6


set#

set(name: string, data: any, origin: string, expiration?: number): Promise<void>

Sets the item to the cache. origin is used for cache invalidation and should reflect the change in data.

Parameters:#

NameType
namestring
dataany
originstring
expiration?number

Returns: Promise<void>

Defined in: packages/core/src/cache/CacheAdapter.ts:11

Last updated on by Martin Adámek