Invalidate a specific cache entry
(self, key: str)
| 135 | self._cache[key] = CacheEntry(data=value, timestamp=datetime.now()) |
| 136 | |
| 137 | def invalidate(self, key: str): |
| 138 | """Invalidate a specific cache entry""" |
| 139 | with self._cache_lock: |
| 140 | if key in self._cache: |
| 141 | del self._cache[key] |
| 142 | |
| 143 | def clear(self): |
| 144 | """Clear all cache entries""" |