Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Log in to django's shell:

python shell

and type:

from django.core.cache import cache
cache.set('somekey', 'someval')

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.