Methods
addMoveFunctionDefinition
- addMoveFunctionDefinition(functionEntry): Promise<{
function: string;
module: string;
package: string;
parameters: {
body: OpenMoveTypeSignatureBody;
ref: null | "&" | "&mut";
}[];
}> Parameters
- functionEntry: MoveFunctionCacheEntry
Returns Promise<{
function: string;
module: string;
package: string;
parameters: {
body: OpenMoveTypeSignatureBody;
ref: null | "&" | "&mut";
}[];
}>
addObject
- addObject(object): Promise<ObjectCacheEntry>
Returns Promise<ObjectCacheEntry>
addObjects
- addObjects(objects): Promise<void>
Parameters
- objects: ObjectCacheEntry[]
Returns Promise<void>
Abstract
clear
- clear<T>(type?): Promise<void>
Type Parameters
- T extends keyof CacheEntryTypes
Returns Promise<void>
Protected
Abstract
delete
- delete<T>(type, key): Promise<void>
Type Parameters
- T extends keyof CacheEntryTypes
Returns Promise<void>
deleteCustom
- deleteCustom(key): Promise<void>
Returns Promise<void>
deleteMoveFunctionDefinition
- deleteMoveFunctionDefinition(ref): Promise<void>
Parameters
- ref: {
function: string;
module: string;
package: string;
}function: string
module: string
package: string
Returns Promise<void>
deleteObject
- deleteObject(id): Promise<void>
Returns Promise<void>
deleteObjects
- deleteObjects(ids): Promise<void>
Returns Promise<void>
Protected
Abstract
get
- get<T>(type, key): Promise<null | CacheEntryTypes[T]>
Type Parameters
- T extends keyof CacheEntryTypes
Returns Promise<null | CacheEntryTypes[T]>
getCustom
- getCustom<T>(key): Promise<null | T>
Returns Promise<null | T>
getMoveFunctionDefinition
- getMoveFunctionDefinition(ref): Promise<null | MoveFunctionCacheEntry>
Parameters
- ref: {
function: string;
module: string;
package: string;
}function: string
module: string
package: string
Returns Promise<null | MoveFunctionCacheEntry>
getObject
- getObject(id): Promise<null | ObjectCacheEntry>
Returns Promise<null | ObjectCacheEntry>
getObjects
- getObjects(ids): Promise<(null | ObjectCacheEntry)[]>
Returns Promise<(null | ObjectCacheEntry)[]>
Protected
Abstract
set
- set<T>(type, key, value): Promise<void>
Type Parameters
- T extends keyof CacheEntryTypes
Parameters
- type: T
- key: string
- value: CacheEntryTypes[T]
Returns Promise<void>
setCustom
- setCustom<T>(key, value): Promise<void>
Returns Promise<void>