> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Expiring Key Value Store

> Expiring\_Key\_Value\_Store module utilities and functionality.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/expiring_key_value_store.py)

## [ExpiringKeyValueStore](/sdk/python/references/expiring_key_value_store)

```python theme={null}
class ExpiringKeyValueStore()
```

Expiring key value store.

This class represents an expiring key value store.

#### \_\_init\_\_

```python theme={null}
def __init__()
```

Initialize an expiring key value store.

#### set

```python theme={null}
def set(key: str, value: Any, expiry_seconds: int)
```

Set a value in the expiring key value store.

**Arguments**:

| Name             | Description                 |
| ---------------- | --------------------------- |
| `key`            | The key to set.             |
| `value`          | The value to set.           |
| `expiry_seconds` | The expiry time in seconds. |

#### get

```python theme={null}
def get(key: str)
```

Get a value from the expiring key value store.

**Arguments**:

| Name  | Description     |
| ----- | --------------- |
| `key` | The key to get. |

**Returns**:

| Name  | Description |
| ----- | ----------- |
| `Any` | The value.  |

#### delete

```python theme={null}
def delete(key: str)
```

Delete a value from the expiring key value store.

**Arguments**:

| Name  | Description        |
| ----- | ------------------ |
| `key` | The key to delete. |
