Interface: StorageTempInterface
Defined in: src/storage/interfaces/StorageTempInterface.ts:3
Properties
deadlines
> readonly deadlines: Map<string, number>
Defined in: src/storage/interfaces/StorageTempInterface.ts:20
The deadlines of the temporary variables, expressed as the number of opened labels after which each variable will be removed. Do not modify this directly.
Methods
remove()
> remove(key): void
Defined in: src/storage/interfaces/StorageTempInterface.ts:15
Remove a temporary variable
Parameters
key
string
The key of the temporary variable
Returns
void
set()
> set(key, value): void
Defined in: src/storage/interfaces/StorageTempInterface.ts:10
Set a variable in the temporary storage. The lifespan of the variable is the number of opened labels. To get the temporary variable, use StorageManagerInterface.get
Parameters
key
string
The key of the temporary variable
value
The value of the temporary variable. If undefined, the variable will be removed
Returns
void