mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
feat: +cache
This commit is contained in:
parent
26e35d799d
commit
207ab96545
1 changed files with 3 additions and 0 deletions
|
|
@ -110,6 +110,9 @@ class BrainMemory(pydantic.BaseModel):
|
|||
|
||||
async def set_history_summary(self, history_summary, redis_key, redis_conf):
|
||||
if self.historical_summary == history_summary:
|
||||
if self.is_dirty:
|
||||
await self.dumps(redis_key=redis_key, redis_conf=redis_conf)
|
||||
self.is_dirty = False
|
||||
return
|
||||
|
||||
self.historical_summary = history_summary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue