Skip to content

Commit eb61058

Browse files
author
Brian Hussey
committed
Update expired_at on the CacheEntry
Signed-off-by: Brian Hussey <[email protected]>
1 parent 0af6bf5 commit eb61058

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mcpgateway/cache/resource_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def get(self, key: str) -> Optional[Any]:
156156
del self._cache[key]
157157
return None
158158

159+
entry.expires_at = now + self.ttl
159160
self._cache.move_to_end(key)
160161

161162
return entry.value

0 commit comments

Comments
 (0)