Refactored the initialisation of the redis client to follow the model used in the StatsdClient.

Basically wrapped the client so we can enable/disable, exception handle and so on.
This commit is contained in:
Martyn Inglis
2016-11-10 11:50:49 +00:00
parent eb94fe6c0a
commit aabda3f83e
4 changed files with 26 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ class Config(object):
STATSD_HOST = "statsd.hostedgraphite.com"
STATSD_PORT = 8125
REDIS_ENABLED = True
REDIS_ENABLED = False
REDIS_URL = "redis://localhost:6379/0"
SENDING_NOTIFICATIONS_TIMEOUT_PERIOD = 259200