I was developing a Django application for a client. Deployment was on Linux, but I was developing on OS-X. I wanted to do some testing with memcached prior to deployment.
memcached comes with OS-X, so that was a good start. Rather than worrying about configuring it to run automatically, I chose to run memcached from the command line, due to my limited needs.
I was testing with the OS-X Apache server, which runs as user _www.
I fired up memcached with the following command line:
Then, to test it, one can telnet into the memcached process and issue commands:
Google telnet and memcached to find examples of interacting with telnet.
Once I verified that memcached was working properly, I configured Django to use it. First:
Then I added the following entry to my settings.py file: