Merge "fix: cache contract for memcached backend"

This commit is contained in:
Jenkins 2013-12-03 16:56:00 +00:00 committed by Gerrit Code Review
commit d30edc4db0

View File

@ -57,7 +57,7 @@ class MemcachedBackend(backends.BaseCache):
def set(self, key, value, ttl=0):
key = self._prepare_key(key)
self._cache.set(key, value, self._get_ttl(ttl))
return self._cache.set(key, value, self._get_ttl(ttl))
def unset(self, key):
self._cache.delete(self._prepare_key(key))