Version: 4.3

Interface: CacheAdapter

Hierarchy

  • CacheAdapter

Implemented by

Methods

clear

clear(): Promise<void>

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

Clears all items stored in the cache.

Returns: Promise<void>


get

get(name: string): Promise<any>

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

Gets the items under name key from the cache.

Parameters:

NameType
namestring

Returns: Promise<any>


set

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

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

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>

Last updated on by Martin Adámek