Skip to main content
Version: 4.5

Class: NullCacheAdapter#

core.NullCacheAdapter

Implements#

Constructors#

constructor#

+ new NullCacheAdapter(): NullCacheAdapter

Returns: NullCacheAdapter

Methods#

clear#

clear(): Promise<void>

Clears all items stored in the cache.

Returns: Promise<void>

Implementation of: CacheAdapter

Defined in: packages/core/src/cache/NullCacheAdapter.ts:22


get#

get(name: string): Promise<any>

Gets the items under name key from the cache.

Parameters:#

NameType
namestring

Returns: Promise<any>

Implementation of: CacheAdapter

Defined in: packages/core/src/cache/NullCacheAdapter.ts:8


set#

set(name: string, data: any, origin: string): 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

Returns: Promise<void>

Implementation of: CacheAdapter

Defined in: packages/core/src/cache/NullCacheAdapter.ts:15

Last updated on by Renovate Bot