Ticket #4845: memcache_key_unicode.diff
File memcache_key_unicode.diff, 491 bytes (added by , 17 years ago) |
---|
-
core/cache/backends/memcached.py
16 16 self._cache = memcache.Client(server.split(';')) 17 17 18 18 def get(self, key, default=None): 19 val = self._cache.get(key )19 val = self._cache.get(key.encode('ascii')) 20 20 if val is None: 21 21 return default 22 22 else: