Django Cache cache.set Not storing data
Question: When I run `python manage.py shell` and then:

    
    
    from django.core.cache import cache
    cache.set("stack","overflow",3000)
    print cache.get("stack")
    
    (output: ) None
    

I tried restarting memcache, and here is what's in my settings:

    
    
    CACHES = { 
      'default' : { 
         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 
         'LOCATION' : '127.0.0.1:11211',
      }
    }
    


Answer: Make sure it's using the correct cache. Try `from django.core.cache import
caches`, and then see the contents of `caches.all()`. It should just have one
instance of `django.core.cache.backends.memcached.MemcachedCache`.  
If it is, try accessing that directly, e.g.

    
    
    from django.core.cache import caches  
    m_cache = caches.all()[0]
    m_cache.set("stack","overflow",3000)
    m_cache.get("stack")
    

This might not solve your problem, but will at least get you closer to
debugging Memcached instead of Django's cache proxy or your configuration.

