title: How do I check the content of a Django cache with Python memcached?
body: <p>Tools version:</p>
  
  <ul>
  <li>Python 2.6.5</li>
  <li>Django 1.3.1</li>
  <li>memcached 1.4.10</li>
  <li>python-memcached 1.48</li>
  </ul>
  
  <p>Memcached is currently running:</p>
  
  <pre><code>$ ps -ef | grep memcache
  nobody    2993     1  0 16:46 ?        00:00:00 /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1
  </code></pre>
  
  <p>I'm using memcached and python memcached with my Django proj and I've set it like the following in <code>settings.py</code>:</p>
  
  <pre><code>CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
          'LOCATION': '127.0.0.1:11211',
          'TIMEOUT': 86400,
      },
  }
  </code></pre>
  
  <p>I've set the cache in the code:</p>
  
  <pre><code>from django.core.cache import cache
  cache.set('countries', ['Canada', 'US'])
  </code></pre>
  
  <p>I then open a Django shell to inspect the content of the cache:</p>
  
  <pre><code>&gt;&gt;&gt; from django.core.cache import cache
  &gt;&gt;&gt; 'countries' in cache
  True
  &gt;&gt;&gt; import memcache
  &gt;&gt;&gt; mc = memcache.Client(['127.0.0.1:11211'], debug=1)
  &gt;&gt;&gt; mc.get('countries')
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>When I use Django's cache, <code>countries</code> key exists.  However, when I use Python's memcache, I don't get anything for countries.  What am I doing wrong above?</p>