Today I came across something which I was going to code myself, only after I found out (after random thinking) that CACHE_MIDDLEWARE_KEY_PREFIX isn’t actually applied when using cache.set(). Whoops.

Anyways http://swag.dk/blog/2009/06/23/django-sharing-a-memcached-instance/

Thanks to Mads over at swag.dk