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:
parent
d7bb612988
commit
5d7632d3c0
2
marconi/common/cache/_backends/memcached.py
vendored
2
marconi/common/cache/_backends/memcached.py
vendored
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user