Update.
This commit is contained in:
parent
7b245869d5
commit
214ac33049
@ -22,10 +22,10 @@ class Cache:
|
|||||||
self.cache: OrderedDict = OrderedDict()
|
self.cache: OrderedDict = OrderedDict()
|
||||||
self.max_items = max_items
|
self.max_items = max_items
|
||||||
self.stats = {}
|
self.stats = {}
|
||||||
self.enabled = True
|
self.enabled = False
|
||||||
# A lock is crucial to prevent race conditions in an async environment.
|
# A lock is crucial to prevent race conditions in an async environment.
|
||||||
self._lock = asyncio.Lock()
|
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):
|
async def get(self, key):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user