I'm testing out using memcached to cache django views. How can I tell if memcached is actually caching anything from the Linux command line?
How to know if memcached is doing anything
djangodjango-cachememcached
djangodjango-cachememcached
I'm testing out using memcached to cache django views. How can I tell if memcached is actually caching anything from the Linux command line?
Best Answer
I know this question is old, but here is another useful approach for testing memcached with django:
As @Jacob mentioned, you can start memcached in very verbose mode (not as a daemon):
To test your django cache config, you can use the low-level cache api.
First, start up the python interpreter and load your django project settings:
From the shell, you can use the low-level cache api to test your memcache server:
If your cache configuration is correct, you should see output in memcache similar to this: