title: Redis Indexes: Storing full key vs. ID
body: <p>Given this example:</p>
  
  <pre><code>user:1 email bob@bob.com
  user:1 name bob
  </code></pre>
  
  <p>Based on my research, all the examples create an "index" similar to the following:</p>
  
  <pre><code>user:bob@bob.com 1
  </code></pre>
  
  <p>My question is: wouldn't it be better to store it as "user:1"?  That would eliminate the need to concatenate the string in code.  Is there some other reason not to store the whole string?  Memory maybe?</p>