mirror of https://github.com/django/django.git
[1.5.x] Fixed #20722 -- Fixed MemcachedCache backend get_many on Python 3.
Backport of 3c736207a3
from master
This commit is contained in:
parent
5192dbbf55
commit
7bbf697132
|
@ -75,7 +75,7 @@ class BaseMemcachedCache(BaseCache):
|
|||
self._cache.delete(key)
|
||||
|
||||
def get_many(self, keys, version=None):
|
||||
new_keys = map(lambda x: self.make_key(x, version=version), keys)
|
||||
new_keys = [self.make_key(x, version=version) for x in keys]
|
||||
ret = self._cache.get_multi(new_keys)
|
||||
if ret:
|
||||
_ = {}
|
||||
|
|
Loading…
Reference in New Issue