---
title: "获取缓存配置"
method: GET
path: "/cache-manage/config"
tags: ["缓存管理"]
---

# 获取缓存配置

`GET /cache-manage/config`

获取服务端音乐缓存的配置信息,包括最大缓存大小限制和缓存目录路径。cache_dir 为空表示使用 default_cache_dir。

## Response `200`

缓存配置

- ServicesCacheConfigResponse
  - `cache_dir` string
  - `default_cache_dir` string
  - `max_size` integer

## Other responses

- `500` — 服务器错误

---

[API](https://skmtc.dev/songloft-org/apis/songloft-api.md) · [All operations](https://skmtc.dev/songloft-org/apis/songloft-api/llms.txt) · [OpenAPI document](https://skmtc.dev/songloft-org/apis/songloft-api/revisions/7cbe0940a38b?raw)
