diff --git a/bin/clean_cache.py b/bin/clean_cache.py index 1b4fe63..bc19aa8 100644 --- a/bin/clean_cache.py +++ b/bin/clean_cache.py @@ -1,6 +1,6 @@ import sys import redis -REDIS = redis.StrictRedis(host='localhost', port=6379, db=0) +REDIS = redis.Redis(host='localhost', port=6379, db=0) for key in sys.argv[1:]: REDIS.delete(key) diff --git a/lib/cache.py b/lib/cache.py index 5f55276..8e2b126 100644 --- a/lib/cache.py +++ b/lib/cache.py @@ -19,7 +19,7 @@ from config import CONFIG _REDIS = None if CONFIG['cache.type'] == 'redis': import redis - _REDIS = redis.StrictRedis( + _REDIS = redis.Redis( host=CONFIG['cache.redis.host'], port=CONFIG['cache.redis.port'], db=CONFIG['cache.redis.db'])