Merge "fix: cache contract for memcached backend"
This commit is contained in:
commit
d30edc4db0
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