1. dairiki
  2. dogpile.cache

Commits

Mike Bayer  committed 03a5f9b

- Fixed bug where the :meth:`.Region.get_multi` method wasn't calling
the backend correctly in Py3K (e.g. was passing a destructive ``map()``
object) which would cause this method to fail on the memcached backend.

  • Participants
  • Parent commits 681826a
  • Branches master

Comments (0)

Files changed (2)

File docs/build/changelog.rst

View file
  • Ignore whitespace
     :version: 0.5.3
 
     .. change::
+        :tags: bug, py3k
+
+      Fixed bug where the :meth:`.Region.get_multi` method wasn't calling
+      the backend correctly in Py3K (e.g. was passing a destructive ``map()``
+      object) which would cause this method to fail on the memcached backend.
+
+    .. change::
         :tags: feature
         :tickets: 55
 

File dogpile/cache/region.py

View file
  • Ignore whitespace
 
         """
         if self.key_mangler:
-            keys = map(lambda key: self.key_mangler(key), keys)
+            keys = list(map(lambda key: self.key_mangler(key), keys))
 
         backend_values = self.backend.get_multi(keys)
 
         """
 
         if self.key_mangler:
-            keys = map(lambda key: self.key_mangler(key), keys)
+            keys = list(map(lambda key: self.key_mangler(key), keys))
 
         self.backend.delete_multi(keys)