APIClaw Cache Settings API
The Cache Settings API from APIClaw — 2 operation(s) for cache settings.
The Cache Settings API from APIClaw — 2 operation(s) for cache settings.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/apiclaw:apiclaw-cache-settings-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: LiteLLM Cache Settings API
description: 'Proxy Server to call 100+ LLMs in the OpenAI format. **Customize Swagger Docs**
👉 ```LiteLLM Admin Panel on /ui```. Create, Edit Keys with SSO. Having issues? Try ```Fallback Login```
💸 ```LiteLLM Model Cost Map```.
🔎 ```LiteLLM Model Hub```. See available models on the proxy. **Docs**'
version: 1.102.1
tags:
- name: Cache Settings
paths:
/cache/settings:
get:
tags:
- Cache Settings
summary: Get Cache Settings
description: 'Get cache configuration and available settings.
Returns:
- fields: List of all configurable cache settings with their metadata (type, description, default, options)
- current_values: Current values of cache settings from database'
operationId: get_cache_settings_cache_settings_get
security:
- APIKeyHeader: []
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CacheSettingsResponse'
post:
tags:
- Cache Settings
summary: Update Cache Settings
description: 'Save cache settings to database and initialize cache.
This endpoint:
1. Encrypts sensitive fields (passwords, etc.)
2. Saves to LiteLLM_CacheConfig table
3. Reinitializes cache with new settings'
operationId: update_cache_settings_cache_settings_post
security:
- APIKeyHeader: []
parameters:
- name: litellm-changed-by
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
title: Litellm-Changed-By
description: The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CacheSettingsUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/cache/settings/test:
post:
tags:
- Cache Settings
summary: Test Cache Connection
description: '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.'
operationId: test_cache_connection_cache_settings_test_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CacheTestRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CacheTestResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
components:
schemas:
CacheSettingsUpdateRequest:
properties:
cache_settings:
additionalProperties: true
type: object
title: Cache Settings
description: Cache settings to save
type: object
required:
- cache_settings
title: CacheSettingsUpdateRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
CacheSettingsResponse:
properties:
fields:
items:
$ref: '#/components/schemas/CacheSettingsField'
type: array
title: Fields
description: List of all configurable cache settings with metadata
current_values:
additionalProperties: true
type: object
title: Current Values
description: Current values of cache settings
redis_type_descriptions:
additionalProperties:
type: string
type: object
title: Redis Type Descriptions
description: Descriptions for each Redis type option
type: object
required:
- fields
- current_values
- redis_type_descriptions
title: CacheSettingsResponse
CacheSettingsField:
properties:
field_name:
type: string
title: Field Name
field_type:
type: string
title: Field Type
field_value:
title: Field Value
field_description:
type: string
title: Field Description
field_default:
title: Field Default
options:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Options
ui_field_name:
type: string
title: Ui Field Name
link:
anyOf:
- type: string
- type: 'null'
title: Link
redis_type:
anyOf:
- type: string
- type: 'null'
title: Redis Type
type: object
required:
- field_name
- field_type
- field_value
- field_description
- ui_field_name
title: CacheSettingsField
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
CacheTestRequest:
properties:
cache_settings:
additionalProperties: true
type: object
title: Cache Settings
description: Cache settings to test connection with
type: object
required:
- cache_settings
title: CacheTestRequest
CacheTestResponse:
properties:
status:
type: string
title: Status
description: 'Connection status: ''success'' or ''failed'''
message:
type: string
title: Message
description: Connection result message
error:
anyOf:
- type: string
- type: 'null'
title: Error
description: Error message if connection failed
type: object
required:
- status
- message
title: CacheTestResponse
securitySchemes:
APIKeyHeader:
type: apiKey
description: Bearer token
in: header
name: x-litellm-api-key