How do I check if memcache is working?    
  I recently set up memcache. How do I check that it is working correctly?
Log in to django's shell:
python manage.py shell
 and type:
from django.core.cache import cache
cache.set('somekey', 'someval')
cache.get('somekey')
 You should get back 'someval' when the cache works. You can confirm that with the dummy cache backend the cache.get('somekey') will return None, but with some real backend you'll get the stored value.
To enter a block of code:
Comments