feat: did some extensive memory implementations.

This commit is contained in:
2025-11-06 15:15:06 +01:00
parent 27bcc7409e
commit 31d272daa3
48 changed files with 6395 additions and 1062 deletions
-12
View File
@@ -122,18 +122,6 @@ class ToolCache:
conn.commit()
conn.close()
def invalidate_tool(self, tool_name: str):
conn = sqlite3.connect(self.db_path, check_same_thread=False)
cursor = conn.cursor()
cursor.execute("DELETE FROM tool_cache WHERE tool_name = ?", (tool_name,))
deleted_count = cursor.rowcount
conn.commit()
conn.close()
return deleted_count
def clear_expired(self):
current_time = int(time.time())