feat: did some extensive memory implementations.
This commit is contained in:
Vendored
-12
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user