---
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` string, date-time, nullable — Time of expiry
  - `value` integer[], nullable

## Other responses

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

## Changes

- **2026-03-31** `f62be26d2a53` — 7 breaking, 4 warning, 3 info
  - the `detail` response's property type/format changed from `string`/`` to `array`/`` for status `422`
  - the `expiry` response's property type/format changed from `integer`/`uint64` to `string`/`date-time` for status `200`
  - removed the required property `code` from the response with the `422` status
  - removed the required property `type` from the response with the `400` status
  - …10 more

[Change history](https://skmtc.dev/svix/apis/diom-api/changes/api/v1.cache.get/post.md)

---

[API](https://skmtc.dev/svix/apis/diom-api.md) · [All operations](https://skmtc.dev/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/svix/diom-api/revisions/4bfee3499c4c/schema)
