> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cache Metrics

> Get cache statistics.

Get cache statistics.

### Response

`object`

<ResponseField name="timestamp" type="string (date-time)" required />

<ResponseField name="cache" type="object" required>
  Hit, miss and size counters
</ResponseField>

### Status codes

| Code  | Meaning                 |
| ----- | ----------------------- |
| `200` | Successful response     |
| `401` | Authentication required |
| `422` | Validation error        |
| `429` | Rate limit exceeded     |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'http://localhost:8000/metrics/cache' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "timestamp": "2026-08-31T14:22:05Z",
    "cache": {}
  }
  ```
</ResponseExample>
