Commit eb2d1d30 authored by Noah Kantrowitz's avatar Noah Kantrowitz Committed by Stéphane Angel

If no port is given but a server is, use that.

Only fall back to localhost if the URI is "redis_cache.cache://"
parent 55ced502
......@@ -33,7 +33,7 @@ class CacheClass(BaseCache):
except (ValueError, TypeError):
port = 6379
else:
host = 'localhost'
host = server or 'localhost'
port = 6379
self._cache = redis.Redis(host=host, port=port, db=db, password=password)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment