360 Secure SkillHub
360 安全技能中心

omni-cache

该 Skill 提供一组 curl 命令访问本地 OmniRoute 缓存 API,可读取缓存统计、查看缓存条目和推理回放缓存,并清空全部或指定缓存;需要 Bearer 令牌,清除操作具有破坏性。

分类:自动化
cheaper-inference
热度 0.00
最近更新 2026-11-20 05:10:17

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cheaper-inference/omniroute/omni-cache
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
omni-cache
description
Manage the LLM response cache. View cache statistics, list and clear entries, and inspect or clear the reasoning replay cache.

Overview

Manage the LLM response cache. View cache statistics, list and clear entries, and inspect or clear the reasoning replay cache.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

GET /api/cache

Get cache statistics

curl http://localhost:20128/api/cache \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache

Clear all caches

curl -X DELETE http://localhost:20128/api/cache \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/cache/stats

Get detailed cache statistics

Returns detailed statistics for all cache layers.

curl http://localhost:20128/api/cache/stats \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache/stats

Clear cache statistics

curl -X DELETE http://localhost:20128/api/cache/stats \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/cache/entries

GET cache › entries

curl http://localhost:20128/api/cache/entries \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache/entries

DELETE cache › entries

curl -X DELETE http://localhost:20128/api/cache/entries \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/cache/reasoning

GET cache › reasoning

curl http://localhost:20128/api/cache/reasoning \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

DELETE /api/cache/reasoning

DELETE cache › reasoning

curl -X DELETE http://localhost:20128/api/cache/reasoning \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.