# Interface: StorageTempInterface (/pixi-vn/index/interfaces/StorageTempInterface)



Defined in: [src/storage/interfaces/StorageTempInterface.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/storage/interfaces/StorageTempInterface.ts#L3)

## Properties [#properties]

### deadlines [#deadlines]

\> `readonly` **deadlines**: `Map`\<`string`, `number`>

Defined in: [src/storage/interfaces/StorageTempInterface.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/storage/interfaces/StorageTempInterface.ts#L20)

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 [#methods]

### remove() [#remove]

\> **remove**(`key`): `void`

Defined in: [src/storage/interfaces/StorageTempInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/storage/interfaces/StorageTempInterface.ts#L15)

Remove a temporary variable

#### Parameters [#parameters]

##### key [#key]

`string`

The key of the temporary variable

#### Returns [#returns]

`void`

***

### set() [#set]

\> **set**(`key`, `value`): `void`

Defined in: [src/storage/interfaces/StorageTempInterface.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/storage/interfaces/StorageTempInterface.ts#L10)

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](/pixi-vn/index/interfaces/StorageManagerInterface#get)

#### Parameters [#parameters-1]

##### key [#key-1]

`string`

The key of the temporary variable

##### value [#value]

[`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType)

The value of the temporary variable. If undefined, the variable will be removed

#### Returns [#returns-1]

`void`
