title: How to show ALL keys through redis-cli?
body: <p>I am using redis as an in-memory database backend for django cache.</p>
  
  <p>In particular, I use <a href="https://github.com/niwibe/django-redis" rel="noreferrer">django-redis</a> configured as follows:</p>
  
  <pre><code>CACHES = {
      'default': {
          'BACKEND': 'redis_cache.cache.RedisCache',
          'KEY_PREFIX':   DOMAIN_NAME,
          'LOCATION': 'unix:/tmp/redis_6379.sock:1',
          'OPTIONS': {
              'PICKLE_VERSION': -1,   # default
              'PARSER_CLASS': 'redis.connection.HiredisParser',
              'CLIENT_CLASS': 'redis_cache.client.DefaultClient',
          },
      },
  }
  </code></pre>
  
  <p>My django cache seem to work correctly.</p>
  
  <p>The weird thing is that I cannot see django cache keys using the <code>redis-cli</code> command line.</p>
  
  <p><strong>[edit]</strong>
  Please notice in the following that I tried both with </p>
  
  <pre><code>$ redis-cli
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$ redis-cli -s /tmp/redis_6379.sock
  </code></pre>
  
  <p><strong>[endedit]</strong></p>
  
  <p>with no difference.</p>
  
  <p>In particular, using the <code>KEYS *</code> command:</p>
  
  <pre><code>$ redis-cli
  redis 127.0.0.1:6379&gt; keys *
  (empty list or set)
  </code></pre>
  
  <p>but</p>
  
  <pre><code>redis 127.0.0.1:6379&gt; set stefano test
  OK
  redis 127.0.0.1:6379&gt; keys *
  1) "stefano"
  </code></pre>
  
  <p>while from django shell:</p>
  
  <pre><code>In [1]: from django.core.cache import cache
  
  In [2]: cache.keys('*')
  Out[2]:
  [u'django.contrib.sessions.cachebblhwb3chd6ev2bd85bawuz7g6pgaij8',
   u'django.contrib.sessions.cachewpxiheosc8qv5w4v6k3ml8cslcahiwna']
  </code></pre>
  
  <p>If I'm using <code>MONITOR</code> on the cli:</p>
  
  <pre><code>redis 127.0.0.1:6379&gt; monitor
  OK
  1373372711.017761 [1 unix:/tmp/redis_6379.sock] "KEYS" "project_prefix:1:*"
  </code></pre>
  
  <p>I can see a request, using the django cache prefix; which should prove the redis-cli is connected to the same service.
  But even searching for that prefix in the <code>redis-cli</code> returns an <code>(empty list or set)</code></p>
  
  <p><strong>Why is that?</strong></p>
  
  <p><strong>What is the mechanisms that compartmentalize the different caches on the same redis instance?</strong></p>