Skip to main content

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',
    }
}

Release files for django-memcachedkeys 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-memcachedkeys 0.1.0
File Size Uploaded
django-memcachedkeys-0.1.0.tar.gz 2.9 kB Details

Release files / django-memcachedkeys-0.1.0.tar.gz

Download URL django-memcachedkeys-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dce017ce7ea3665080cc84ab26fef93449802ebf4ca1a4f7d2e865f28d67358b
BLAKE2b-256 checksum
How to use checksums
9f9cf20c876d7dcef579254fbe24a7dccd99012544fa4173a2fdd36ad46ddaf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page