---
title: Memory
description: An in-process store for tests, the default when `NODE_ENV=test`.
---

```ts
// in a test:
import { createServer } from 'experimental-a2/server'
import { memory } from 'experimental-a2/store-memory'
import { orders } from '@/contracts'

const ordersServer = createServer({ contract: orders, store: memory() })
```

Sessions live in the process and vanish when it exits. Under `NODE_ENV=test`, a
server without a `store` already uses memory.

## Options

| Option | |
| --- | --- |
| `clock`, `ids` | test seams for timestamps and generated event ids |
