Cache Settings

Update Cache Settings

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
post/cache/settings

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/cache/settings
  • Auth: API key in header x-litellm-api-key

Headers

litellm-changed-bystring nullable

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

Request body

cache_settingsobject required

Cache settings to save

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.