MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / CacheEntry

Class CacheEntry

src/environment/filesystem/cache.py:11–20  ·  view source on GitHub ↗

Cache entry with data, timestamp, and access count.

Source from the content-addressed store, hash-verified

9
10@dataclass
11class CacheEntry:
12 """Cache entry with data, timestamp, and access count."""
13 data: bytes
14 timestamp: float
15 access_count: int = 0
16 size: int = 0
17
18 def __post_init__(self):
19 if self.size == 0:
20 self.size = len(self.data)
21
22
23class LRUByteCache:

Callers 1

putMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected