---
title: Storage
framework: tvmljs
role: symbol
role_heading: Class
path: tvmljs/storage
---

# Storage

An object used to store key-value-pair information.

## Declaration

```data
interface Storage
```

## Overview

Overview You cannot create a new instance of the Storage class. The available instances in TVMLKit JS are localStorage and sessionStorage. Local storage writes the data to the disk, while session storage writes the data to the memory only. Any data written to the session storage is purged when your app exits.

## Topics

### Accessing Key-Value Pair Information

- [clear](tvmljs/storage/1627404-clear.md)
- [getItem](tvmljs/storage/1627333-getitem.md)
- [key](tvmljs/storage/1627380-key.md)
- [length](tvmljs/storage/1627448-length.md)
- [removeItem](tvmljs/storage/1627332-removeitem.md)
- [setItem](tvmljs/storage/1627302-setitem.md)

## See Also

### Data Storage and Retrieval

- [Binding JSON data to TVML documents](tvmljs/binding_json_data_to_tvml_documents.md)
- [XMLHttpRequest](tvmljs/xmlhttprequest.md)
- [DataItem](tvmljs/dataitem.md)
- [DataSource](tvmljs/datasource.md)
- [LoadIndexesRequest](tvmljs/loadindexesrequest.md)
