---
title: "Cache Get"
method: POST
path: "/api/v1.cache.get"
tags: ["Cache"]
---

# Cache Get

`POST /api/v1.cache.get`

Cache Get

## Request body

- CacheGetIn
  - `namespace` string, nullable
  - `key` string, required
  - `consistency` 'strong' | 'weak' — Consistency level for reads. Strong consistency (also known as linearizability) guarantees that a read will see all previous writes. Weak consistency allows stale reads, but can save one or more round trip to the leader.

## Response `200`

- CacheGetOut
  - `expiry` integer, nullable — Time of expiry
  - `value` integer[], nullable

## Other responses

- `400`
- `401`
- `403`
- `422`

---

[API](https://skmtc.net/svix/apis/diom-api.md) · [All operations](https://skmtc.net/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/svix/diom-api/versions/e98d7f3a3e10/schema)
