# `ExSaml.State.Cache`
[🔗](https://github.com/docJerem/ex_saml/blob/main/lib/ex_saml/state/cache.ex#L1)

Stores SAML assertions using a Nebulex cache backend.

Suitable for distributed environments. Assertions have a default TTL of 5 minutes.

## Configuration

    config :ex_saml, ExSaml.State,
      store: ExSaml.State.Cache

    config :ex_saml, cache: MyApp.Cache

# `list_assertions`

Lists all cached assertions as `{key, value}` tuples.

# `ttl_assertion`

Returns the remaining TTL for the given assertion key.

---

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