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