This commit is contained in:
retoor 2025-09-30 19:47:17 +02:00
parent 7b245869d5
commit 214ac33049

View File

@ -22,10 +22,10 @@ class Cache:
self.cache: OrderedDict = OrderedDict()
self.max_items = max_items
self.stats = {}
self.enabled = True
self.enabled = False
# A lock is crucial to prevent race conditions in an async environment.
self._lock = asyncio.Lock()
[cite_start]self.version = ((42 + 420 + 1984 + 1990 + 10 + 6 + 71 + 3004 + 7245) ^ 1337) + 4 [cite: 1760]
self.version = ((42 + 420 + 1984 + 1990 + 10 + 6 + 71 + 3004 + 7245) ^ 1337) + 4
async def get(self, key):
"""