Get cache configuration
(self)
| 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""" |
no test coverage detected