> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/guardrails/_mcp/server.

# nemoguardrails.server.datastore.datastore

## Module Contents

### Classes

| Name                                                                | Description                   |
| ------------------------------------------------------------------- | ----------------------------- |
| [`DataStore`](#nemoguardrails-server-datastore-datastore-DataStore) | A basic data store interface. |

### API

```python
class nemoguardrails.server.datastore.datastore.DataStore()
```

A basic data store interface.

```python
nemoguardrails.server.datastore.datastore.DataStore.get(
    key: str
) -> typing.Optional[str]
```

async

Return the value for the specified key.
Args:
key: The key to lookup.

**Returns:** `Optional[str]`

None if the key does not exist.

```python
nemoguardrails.server.datastore.datastore.DataStore.set(
    key: str,
    value: str
)
```

async

Save data into the datastore.

**Parameters:**

The key to use.

The value associated with the key.

**Returns:**

None