diff options
| author | 2020-06-16 20:10:23 +0800 | |
|---|---|---|
| committer | 2020-06-16 20:10:23 +0800 | |
| commit | 433f6b6843006aff57cf1e125d340e703c85669f (patch) | |
| tree | 15e41c6f47e23d6edac9d9ba16d5c07b11a77d79 | |
| parent | Refactor nested if-statement (diff) | |
Revise inaccurate docstring in RedisCache
| -rw-r--r-- | bot/utils/redis_cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/utils/redis_cache.py b/bot/utils/redis_cache.py index 347a0e54a..f342bbb62 100644 --- a/bot/utils/redis_cache.py +++ b/bot/utils/redis_cache.py @@ -48,8 +48,8 @@ class RedisCache: behaves, and should be familiar to Python users. The biggest difference is that all the public methods in this class are coroutines, and must be awaited. - Because of limitations in Redis, this cache will only accept strings, integers and - floats both for keys and values. + Because of limitations in Redis, this cache will only accept strings and integers for keys, + and strings, integers, floats and booleans for values. Please note that this class MUST be created as a class attribute, and that that class must also contain an attribute with an instance of our Bot. See `__get__` and `__set_name__` |