skip to navigation
skip to content

Not Logged In

django-memcachedkeys 0.1.0

Sanitize your keys, please.

Memcached has some weird rules about its keys. Ignore them and you'll get an error like "MemcachedKeyCharacterError: Control characters not allowed". So install this.

Quickstart

Install django-memcachedkeys:

pip install django-memcachedkeys

Then use it in your settings file:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
        'KEY_PREFIX': 'whatever',
        'KEY_FUNCTION': 'memcachedkeys.make_key',
    }
}
 
File Type Py Version Uploaded on Size
django-memcachedkeys-0.1.0.tar.gz (md5) Source 2013-12-11 2KB
  • Downloads (All Versions):
  • 1 downloads in the last day
  • 27 downloads in the last week
  • 156 downloads in the last month