Ticket #4845: memcache_key_unicode.2.diff

File memcache_key_unicode.2.diff, 501 bytes (added by Matt Riggott, 8 years ago)
  • core/cache/backends/memcached.py

     
    1616        self._cache = memcache.Client(server.split(';'))
    1717
    1818    def get(self, key, default=None):
    19         val = self._cache.get(key)
     19        val = self._cache.get(key.encode('ascii', 'ignore'))
    2020        if val is None:
    2121            return default
    2222        else:
Back to Top