diff options
| author | 2020-10-04 09:24:08 +0300 | |
|---|---|---|
| committer | 2020-10-04 09:24:08 +0300 | |
| commit | c58d68eed338514963525099c233363f01db1e65 (patch) | |
| tree | 7ba9483bf90ff6a865eeb101f0fc7cf367b1730b | |
| parent | Move PEP URLs to class constants (diff) | |
Make AsyncCache key tuple instead string
Diffstat (limited to '')
| -rw-r--r-- | bot/utils/cache.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bot/utils/cache.py b/bot/utils/cache.py index 70925b71d..8a180b4fa 100644 --- a/bot/utils/cache.py +++ b/bot/utils/cache.py @@ -24,7 +24,7 @@ class AsyncCache:              @functools.wraps(function)              async def wrapper(*args) -> Any:                  """Decorator wrapper for the caching logic.""" -                key = ':'.join(str(args[arg_offset:])) +                key = args[arg_offset:]                  if key not in self._cache:                      if len(self._cache) > max_size: | 
