# `Issho.Store.Memory`
[🔗](https://github.com/hattoriai/issho/blob/v0.1.0/lib/issho/store/memory.ex#L1)

A store in memory, for development and tests. It outlives a document's
authority, but loses everything when its node stops.

    children = [
      {Issho.Store.Memory, name: MyApp.CollabStore},
      {Issho, name: MyApp.Issho, store: {Issho.Store.Memory, MyApp.CollabStore}, ...}
    ]

`content/2` reads a document's content as last saved, for tests.

# `content`

```elixir
@spec content(Agent.agent(), String.t()) :: term()
```

The content of a document as last saved, or `nil`.

# `start_link`

```elixir
@spec start_link(keyword()) :: Agent.on_start()
```

Starts a store. Options: `:name`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
