---
title: "Test Cache Connection"
method: POST
path: "/cache/settings/test"
tags: ["Cache Settings"]
---

# Test Cache Connection

`POST /cache/settings/test`

Test cache connection with provided credentials.

Creates a temporary cache instance and uses its test_connection method
to verify the credentials work without affecting global state.

## Request body

- CacheTestRequest
  - `cache_settings` object, required — Cache settings to test connection with

## Response `200`

Successful Response

- CacheTestResponse
  - `status` string, required — Connection status: 'success' or 'failed'
  - `message` string, required — Connection result message
  - `error` string, nullable — Error message if connection failed

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `082b5fabd909` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/cache/settings/test/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/b694deb1e459?raw)
