# createMemoryStore (@salmonui/data/storage)

> The createMemoryStore function of @salmonui/data/storage: Wraps a Map as a KeyValueStore (tests, SSR).

Canonical: https://salmonui.dev/docs/reference/data/storage/createMemoryStore

```ts
import { createMemoryStore } from '@salmonui/data/storage';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/storage (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/storage.md).

## Reference

Kind: function

```ts
function createMemoryStore(map?: Map<string, string>): KeyValueStore;
```

Wraps a `Map` as a `KeyValueStore` (tests, SSR).
