
## IStorage class

This interface of the Web Storage API provides access to a particular domain's session or local storage.
See Web Storage specification:



The IStorage type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [length](/html/python-net/aspose.html.dom/istorage/length) | Returns the number of key/value pairs. |


### Methods
| Method | Description |
| :- | :- |
| [key](/html/python-net/aspose.html.dom/istorage/key/#int) | Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. |
| [get_item](/html/python-net/aspose.html.dom/istorage/get_item/#str) | Returns the current value associated with the given key, or null if the given key does not exist. |
| [set_item](/html/python-net/aspose.html.dom/istorage/set_item/#str-str) | Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously. |
| [remove_item](/html/python-net/aspose.html.dom/istorage/remove_item/#str) | Removes the key/value pair with the given key, if a key/value pair with the given key exists. |
| [clear](/html/python-net/aspose.html.dom/istorage/clear/#) | Removes all key/value pairs, if there are any. |



### See Also
* module [`aspose.html.dom`](..)
