diff options
author | 2020-11-16 16:23:20 +0200 | |
---|---|---|
committer | 2020-11-16 16:24:11 +0200 | |
commit | 824084bf7c18edd96ea194b242fa47cb58bed15c (patch) | |
tree | 3904389678e9c25957237c6c02dfda158376a720 | |
parent | Put development Redis information to container (diff) |
Rename redis configuration class
-rw-r--r-- | bot/constants.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py index 1dcc8846..b9648507 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -17,6 +17,7 @@ __all__ = ( "Roles", "Tokens", "Wolfram", + "RedisConfig", "MODERATION_ROLES", "STAFF_ROLES", "WHITELISTED_CHANNELS", @@ -216,7 +217,7 @@ class Wolfram(NamedTuple): key = environ.get("WOLFRAM_API_KEY") -class RedisCache(NamedTuple): +class RedisConfig(NamedTuple): host = environ.get("REDIS_HOST", "redis.default.svc.cluster.local") port = environ.get("REDIS_PORT", 6379) password = environ.get("REDIS_PASSWORD") |