> ## Documentation Index
> Fetch the complete documentation index at: https://chainpatrol-knowledge-update-blockaid-and-hypernative-partn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Memory

The `Storage.memory()` adapter stores data in memory. This is the default adapter when you instantiate
a new `ThreatDetector` instance.

We don't recommend using this adapter in production, as it will not persist data between sessions. But
it is useful for testing and development.

## Example

```js theme={null}
import { Storage } from "@chainpatrol/sdk";

const storage = Storage.memory({
  quota: 1024 * 1024 * 2, // 2MB
});
```
