---
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`

## Changes

- **2026-04-14** `7f5edfb12f87` — 2 breaking
  - the `key` request property's minLength was increased from `0` to `1`
  - the `namespace` request property's minLength was increased from `0` to `1`
- **2026-04-14** `14bcce06404b` — 1 breaking, 1 warning
  - added the pattern `^[a-zA-Z0-9\-/_.=+]+$` to the request property `namespace`
  - the `namespace` request property's maxLength was set to `256`
- **2026-04-13** `e6c44b12ecfb` — 1 breaking
  - the `expiry` response's property type/format changed from `string`/`date-time` to `integer`/`uint64` for status `200`
- **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/2027bc3fbcfb/schema)
