Ticket #4845: memcache_key_unicode.diff

File memcache_key_unicode.diff, 491 bytes (added by Matt Riggott, 8 years ago)

Patch to force memcache keys to ascii

  • 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'))
    2020        if val is None:
    2121            return default
    2222        else:
Back to Top