Commit fc404efa authored by Jannis Leidel's avatar Jannis Leidel Committed by Sean Bleier

The result of set() is actually a boolean.

parent ffd2cf10
...@@ -76,10 +76,8 @@ class CacheClass(BaseCache): ...@@ -76,10 +76,8 @@ class CacheClass(BaseCache):
timeout = timeout or self.default_timeout timeout = timeout or self.default_timeout
self._cache.expire(key, timeout) self._cache.expire(key, timeout)
if result == "OK": # result is a boolean
return True return result
else:
return False
def delete(self, key): def delete(self, key):
"Remove a key from the cache." "Remove a key from the cache."
......
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