Class: abstract
AsyncCache
Constructors
new AsyncCache()
new AsyncCache():
AsyncCache
Returns
Methods
get()
abstract
protected
get<T
>(type
,key
):Promise
<null
|CacheEntryTypes
[T
]>
Type Parameters
• T extends keyof CacheEntryTypes
Parameters
• type: T
• key: string
Returns
Promise
<null
| CacheEntryTypes
[T
]>
set()
abstract
protected
set<T
>(type
,key
,value
):Promise
<void
>
Type Parameters
• T extends keyof CacheEntryTypes
Parameters
• type: T
• key: string
• value: CacheEntryTypes
[T
]
Returns
Promise
<void
>
delete()
abstract
protected
delete<T
>(type
,key
):Promise
<void
>
Type Parameters
• T extends keyof CacheEntryTypes
Parameters
• type: T
• key: string
Returns
Promise
<void
>
clear()
abstract
clear<T
>(type
?):Promise
<void
>
Type Parameters
• T extends keyof CacheEntryTypes
Parameters
• type?: T
Returns
Promise
<void
>
getObject()
getObject(
id
):Promise
<null
|ObjectCacheEntry
>
Parameters
• id: string
Returns
Promise
<null
| ObjectCacheEntry
>
getObjects()
getObjects(
ids
):Promise
<(null
|ObjectCacheEntry
)[]>
Parameters
• ids: string
[]
Returns
Promise
<(null
| ObjectCacheEntry
)[]>
addObject()
addObject(
object
):Promise
<ObjectCacheEntry
>
Parameters
• object: ObjectCacheEntry
Returns
Promise
<ObjectCacheEntry
>
addObjects()
addObjects(
objects
):Promise
<void
>
Parameters
• objects: ObjectCacheEntry
[]
Returns
Promise
<void
>
deleteObject()
deleteObject(
id
):Promise
<void
>
Parameters
• id: string
Returns
Promise
<void
>
deleteObjects()
deleteObjects(
ids
):Promise
<void
>
Parameters
• ids: string
[]
Returns
Promise
<void
>
getMoveFunctionDefinition()
getMoveFunctionDefinition(
ref
):Promise
<null
|MoveFunctionCacheEntry
>
Parameters
• ref
• ref.package: string
• ref.module: string
• ref.function: string