fix: cache contract for memcached backend

set() should return a boolean. Currently, it always returns None. This
one-line fix resolves this issue.

Change-Id: I9d2827891dc8ee8904f3031ea75e5bef0ce30488
This commit is contained in:
Alejandro Cabrera 2013-12-02 13:07:45 -05:00
parent d7bb612988
commit 5d7632d3c0

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))