MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_cache_config

Function get_cache_config

src/api/admin.py:1698–1713  ·  view source on GitHub ↗

Get cache configuration

(token: str = Depends(verify_admin_token))

Source from the content-addressed store, hash-verified

1696
1697@router.get("/api/cache/config")
1698async def get_cache_config(token: str = Depends(verify_admin_token)):
1699 """Get cache configuration"""
1700 cache_config = await db.get_cache_config()
1701
1702 # Calculate effective base URL
1703 effective_base_url = cache_config.cache_base_url if cache_config.cache_base_url else f"http://127.0.0.1:8000"
1704
1705 return {
1706 "success": True,
1707 "config": {
1708 "enabled": cache_config.cache_enabled,
1709 "timeout": cache_config.cache_timeout,
1710 "base_url": cache_config.cache_base_url or "",
1711 "effective_base_url": effective_base_url
1712 }
1713 }
1714
1715
1716@router.post("/api/cache/enabled")

Callers

nothing calls this directly

Calls 1

get_cache_configMethod · 0.80

Tested by

no test coverage detected