# Lazy Cache Coordinator

State manager searches for requested ids in cache first, and the loader afterwards, if cache does not hold a copy. It works as a lazy cache, only copying data to the cache state after the first miss.

## Manager Parameters

| Parameter         | Definition                                                                               | Example         | Default |
| ----------------- | ---------------------------------------------------------------------------------------- | --------------- | ------- |
| cache.state       | Name of the state manager which acts as the cache                                        | variable\_local | -       |
| expirationSeconds | Optional TTL seconds to ignore old cache entries (typically used when CDC is not active) | 60              | -       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rierino.com/devops/microservices/elements/state-managers/state-coordinators/lazy-cache-coordinator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
