# 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.                                                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sparkar-community.gitbook.io/docs/persistencemodule/storagescope.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
