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

Method get_cache_config

src/core/database.py:1738–1747  ·  view source on GitHub ↗

Get cache configuration

(self)

Source from the content-addressed store, hash-verified

1736
1737 # Cache config operations
1738 async def get_cache_config(self) -> CacheConfig:
1739 """Get cache configuration"""
1740 async with self._connect() as db:
1741 db.row_factory = aiosqlite.Row
1742 cursor = await db.execute("SELECT * FROM cache_config WHERE id = 1")
1743 row = await cursor.fetchone()
1744 if row:
1745 return CacheConfig(**dict(row))
1746 # Return default if not found
1747 return CacheConfig(cache_enabled=False, cache_timeout=7200)
1748
1749 async def update_cache_config(self, enabled: bool = None, timeout: int = None, base_url: Optional[str] = None):
1750 """Update cache configuration"""

Callers 2

get_cache_configFunction · 0.80

Calls 2

_connectMethod · 0.95
CacheConfigClass · 0.85

Tested by

no test coverage detected