Version: 4.4
#
Interface: CacheAdaptercore.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:Name | Type |
---|---|
name | string |
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:Name | Type |
---|---|
name | string |
data | any |
origin | string |
expiration? | number |
Returns: Promise<void>
Defined in: packages/core/src/cache/CacheAdapter.ts:11