> For the complete documentation index, see [llms.txt](https://sparkar-community.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sparkar-community.gitbook.io/docs/persistencemodule/storagescope.md).

# StorageScope

The `StorageScope` class encapsulates different methods of storage for persistent objects.

## Properties

This module exposes no properties.

## Methods

| Method   | Description                                                                                                                                                                                        |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `get`    | <p><code>get(key: String): Promise\<Object></code></p><p>Gets the value with the specified key Returns a <code>JS Promise</code> which will be fulfilled with a JavaScript object or an error.</p> |
| `remove` | <p><code>remove(key: String): Promise<></code></p><p>Removes the key. Returns a <code>JS Promise</code> or an error.</p>                                                                           |
| `set`    | `set(key: String, value: Object): Promise<>` Sets the value for the key Returns a `JS Promise` or an error.                                                                                        |
