Using Django's cache with locmem (with simple Python classes as values stored in lists/tuples/maps) works perfectly but does not work with memcached.
Only a fraction of the keys (despite ample memory allocated and large timeouts) make their way into memcached, and none of them appear to have any associated value.
When they are retrieved, no value is returned and they are removed from the cache.
Forcing a value of "hi" makes those that appear in the cache retrievable, but does not account for why most of the keys are simply not there.
Questions:
- Why do only certain keys end up in memcached and others not, even when all values are set to "hi"?
- Is there any way to enable more logging or error reporting? (everything seems to fail silently)
- Why do the Python classes serialize correctly to locmem but do not end up in Memcached?