Check if cache exists and has data.
(self)
| 134 | return cache.get("servers", {}) |
| 135 | |
| 136 | def has_cache(self) -> bool: |
| 137 | """Check if cache exists and has data.""" |
| 138 | cache = self.load() |
| 139 | return bool(cache.get("servers")) |
| 140 | |
| 141 | def clear(self): |
| 142 | """Clear the cache.""" |
no test coverage detected