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):
timeout = timeout or self.default_timeout
self._cache.expire(key, timeout)
if result == "OK":
return True
else:
return False
# result is a boolean
return result
def delete(self, key):
"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