# Interface: StorageExternalStoreHandler (/jsdoc/pixi-vn/index/interfaces/StorageExternalStoreHandler)



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

Properties [#properties]

onClearOldTempVariable? [#onclearoldtempvariable]

\> `optional` &#x2A;*onClearOldTempVariable?**: (`key`) => `void`

Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/storage/interfaces/StorageExternalStoreHandler.ts#L13)

Triggered when a temp variable is removed by [StorageRegistry.clearOldTempVariables](/jsdoc/pixi-vn/index/namespaces/StorageRegistry/functions/clearOldTempVariables).
The key is provided without any storage prefix.

Parameters [#parameters]

key [#key]

`string`

Returns [#returns]

`void`

***

onRemoveVariable? [#onremovevariable]

\> `optional` &#x2A;*onRemoveVariable?**: (`key`) => `void`

Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/storage/interfaces/StorageExternalStoreHandler.ts#L18)

Triggered when [StorageRegistry.removeVariable](/jsdoc/pixi-vn/index/namespaces/StorageRegistry/functions/removeVariable) is called.
The key is provided without any storage prefix.

Parameters [#parameters-1]

key [#key-1]

`string`

Returns [#returns-1]

`void`

***

onSetVariable? [#onsetvariable]

\> `optional` &#x2A;*onSetVariable?**: (`key`, `value`) => `void`

Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/storage/interfaces/StorageExternalStoreHandler.ts#L8)

Triggered when [StorageRegistry.setVariable](/jsdoc/pixi-vn/index/namespaces/StorageRegistry/functions/setVariable) is called.
The key is provided without any storage prefix.

Parameters [#parameters-2]

key [#key-2]

`string`

value [#value]

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

Returns [#returns-2]

`void`
