clear_cache
Clear cached data to ensure access to the most current Korean independence patriot merit records and achievement documents from official archives.
Instructions
캐시된 데이터를 모두 초기화합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/gonghun_mcp/tools.py:335-346 (handler)Executes the clear_cache tool by invoking cache_manager.clear() and returning a formatted success response.elif name == "clear_cache": # 캐시 초기화 cache_manager.clear() return [ TextContent( type="text", text=format_response({ "success": True, "message": "캐시가 성공적으로 초기화되었습니다." }) ) ]
- src/gonghun_mcp/tools.py:197-204 (registration)Registers the clear_cache tool with its name, description, and input schema in the list_tools() function.Tool( name="clear_cache", description="캐시된 데이터를 모두 초기화합니다", inputSchema={ "type": "object", "properties": {} } )
- src/gonghun_mcp/tools.py:200-203 (schema)Defines the input schema for the clear_cache tool as an empty object, indicating no input parameters are required.inputSchema={ "type": "object", "properties": {} }
- src/gonghun_mcp/cache.py:55-59 (helper)Implements the actual cache clearing logic used by the clear_cache tool handler, clearing cache data and timestamps.def clear(self) -> None: """모든 캐시를 초기화합니다.""" self.last_cache_time.clear() self.cache_data.clear() logger.info("캐시가 초기화되었습니다.")