title: Redis scan count: How to force SCAN to return all keys matching a pattern?
body: <p>I am trying to find out values stored in a list of keys which match a pattern from redis. I tried using <code>SCAN</code> so that later on i can use <code>MGET</code> to get all the values, The problem is: </p>
  
  <pre><code>SCAN 0 MATCH "foo:bar:*" COUNT 1000
  </code></pre>
  
  <p>does not return any value whereas</p>
  
  <pre><code>SCAN 0 MATCH "foo:bar:*" COUNT 10000
  </code></pre>
  
  <p>returns the desired keys.
  How do i force <code>SCAN</code> to look through all the existing keys? Do I have to look into lua for this?</p>