[Answered ]-Why doesn't memcache work in my Django?

0👍

âś…

Solved.

Django was talking to the server.
I did “nc IPADRESS 11211” .
And typed “stats”

Then, I looked that cmd_get and cmd_set were changing, so that means it’s talking.

Then, I realized that I had problem with code in my views.
You can’t have “space” in the key. It has to be non-spaceless (and encoded)

2👍

You can insure that you can reach memcached from your code by logging value returned from set() method. Probably memcached listens on 127.0.0.1 while you are trying to connect to external interface.

Leave a comment