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

# Camel.storages.key value storages.in memory

<a id="camel.storages.key_value_storages.in_memory" />

<a id="camel.storages.key_value_storages.in_memory.InMemoryKeyValueStorage" />

## InMemoryKeyValueStorage

```python theme={"system"}
class InMemoryKeyValueStorage(BaseKeyValueStorage):
```

A concrete implementation of the :obj:`BaseKeyValueStorage` using
in-memory list. Ideal for temporary storage purposes, as data will be lost
when the program ends.

<a id="camel.storages.key_value_storages.in_memory.InMemoryKeyValueStorage.__init__" />

### **init**

```python theme={"system"}
def __init__(self):
```

<a id="camel.storages.key_value_storages.in_memory.InMemoryKeyValueStorage.save" />

### save

```python theme={"system"}
def save(self, records: List[Dict[str, Any]]):
```

Saves a batch of records to the key-value storage system.

**Parameters:**

* **records** (List\[Dict\[str, Any]]): A list of dictionaries, where each dictionary represents a unique record to be stored.

<a id="camel.storages.key_value_storages.in_memory.InMemoryKeyValueStorage.load" />

### load

```python theme={"system"}
def load(self):
```

**Returns:**

List\[Dict\[str, Any]]: A list of dictionaries, where each dictionary
represents a stored record.

<a id="camel.storages.key_value_storages.in_memory.InMemoryKeyValueStorage.clear" />

### clear

```python theme={"system"}
def clear(self):
```

Removes all records from the key-value storage system.
