Ticket #4845: memcache_key_unicode.2.diff
File memcache_key_unicode.2.diff, 501 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', 'ignore')) 20 20 if val is None: 21 21 return default 22 22 else: