I am getting a "MemcachedKeyLengthError: Key length is > 250" exception being thrown for long keys.
After some investigating, I see the sanitize_memcached_key doing its job and creating a 250 character key. That then ends up being passed around and ends up in django.core.cache.backends.base.default_key_func which prepends at least a couple of characters (":1:" in the default case), making the actual key memcache sees too long: https://github.com/django/django/blob/master/django/core/cache/backends/base.py#L27
I don't see any way to pass in a different max key length, or configure the default. Would it be possible to add one or the other? Thanks.