MCPcopy Create free account
hub / github.com/IBM/mcp-cli / clear_cache

Method clear_cache

src/mcp_cli/model_management/client_factory.py:163–166  ·  view source on GitHub ↗

Clear the client cache.

(self)

Source from the content-addressed store, hash-verified

161 return self._client_cache[cache_key]
162
163 def clear_cache(self):
164 """Clear the client cache."""
165 self._client_cache.clear()
166 logger.debug("Cleared client cache")
167
168 def get_cache_size(self) -> int:
169 """Get the number of cached clients."""

Callers 3

refresh_modelsMethod · 0.80

Calls 1

clearMethod · 0.45