Commit 72a899e7 authored by Jannis Leidel's avatar Jannis Leidel Committed by Sean Bleier

Correctly set the add timeout.

parent 6f05c122
...@@ -38,7 +38,7 @@ class CacheClass(BaseCache): ...@@ -38,7 +38,7 @@ class CacheClass(BaseCache):
port = 6379 port = 6379
self._cache = redis.Redis(host=host, port=port, db=db, password=password) self._cache = redis.Redis(host=host, port=port, db=db, password=password)
def add(self, key, value, timeout=0): def add(self, key, value, timeout=None):
""" """
Add a value to the cache, failing if the key already exists. Add a value to the cache, failing if the key already exists.
......
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