Commit 0696b25b authored by Ales Zoulek's avatar Ales Zoulek

redis can work only with int timeouts, not floats

parent c195401f
......@@ -101,7 +101,7 @@ class CacheClass(BaseCache):
if not timeout:
timeout = self.default_timeout
# store the pickled value
result = self._cache.setex(key, pickle.dumps(value), timeout)
result = self._cache.setex(key, pickle.dumps(value), int(timeout))
# result is a boolean
return result
......
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