--- title: "Storage Component" slug: "storage-component" updated: 2023-02-13T09:56:54Z published: 2023-02-13T09:56:54Z canonical: "help.pillir.io/storage-component" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.pillir.io/llms.txt > Use this file to discover all available pages before exploring further. # Storage Component The Storage Component consists of blocks that operate on two types of Storage: - Session Storage - Get storage variable - Set Session - Remove session variable - Clear session. - Persistent Storage - Get Local - Set Local - Remove Local ## Session Storage ## Get storage variable The Get Item block is used to fetch a particular Key-value placed within a session storage variable. | Input | Output | Block Layout | Generated Code | | --- | --- | --- | --- | | Name or Key in Text or variable | Returns the value of any type. | ![GetStorageVar](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/GetStorageVar.png) | ```javascript (__er.getSessionStorage('key', value)); ``` | ## Set Session The Set Session block is used to set a particular key-value pair to a specific session variable. | Input | Output | Block Layout | Generated Code | | --- | --- | --- | --- | | Name or Key in Text or Variable, Value any type | Store the key-value pair to the session storage. | ![SetSession](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/SetSession.png) | ```javascript __er.setSessionStorage('key', ); ``` | ## Remove session variable It is used to remove a particular item in a session variable placed within a session storage block. | Input | Output | Block Layout | Generated Code | | --- | --- | --- | --- | | Name or Key in Text | Remove the key-value pair from session storage using the key. | ![RemoveSession](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/RemoveSession.png) | ```javascript __er.removeSessionStorage('key'); ``` | ## Clear session This block clears all session storage data. | Input | Output | Block Layout | Generated Code | | --- | --- | --- | --- | | NA | Removes all the session storage key-value pairs. | ![ClearSession](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/ClearSession.png) | ```javascript __er.clearAllSessionStorage(); ``` | ## Persistent Storage The Persistent storage blocks are used to operate on local storage data. The local variables can be accessed in the app behavior section of any business function(across projects) within the EdgeReady platform. ## Get Local  This block is used to fetch a key-value pair from a local variable.  | Input | Output | Block Layout | Generated Output | | --- | --- | --- | --- | | Name or Key in Text | Returns the value of any type. | ![GetLocal](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/GetLocal.png) | ```javascript (__er.getLocalStorage('key')); ``` | ## Set Local This block is used to set a key value to a particular local variable.  | Input | Output | Block Layout | Generated Output | | --- | --- | --- | --- | | Name or Key in Text or Variable Value any type | Store the key-value pair to the local storage variable | ![SetLocal](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/SetLocal.png) | ```javascript __er.setLocalStorage('key' , 'value'); ``` | ## Remove Local This block is used to remove the existing key-value of a variable from the local storage. | Input | Output | Block Layout | Generated Output | | --- | --- | --- | --- | | Name or Key in Text | Remove the key-value pair from local storage using the key. | ![RemoveLocal](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/RemoveLocal.png) | ```javascript __er.removeLocalStorage('key'); ``` |