title: redis performance, store json object as a string
body: <p>I need to save a User model, something like:</p>
  
  <pre><code>{ "nickname": "alan",
    "email": ...,
    "password":...,
    ...} // and a couple of other fields
  </code></pre>
  
  <p>Today, I use a Set: users<br>
  In this Set, I have a member like user:alan<br>
  In this member I have the hash above  </p>
  
  <p>This is working fine but I was just wondering if instead of the above approach that could make sense to use the following one:</p>
  
  <p>Still use users Set (to easily get the users (members) list)<br>
  In this set only use a key / value storage like:  </p>
  
  <p>key: alan
  value : the stringify version of the above user hash</p>
  
  <p>Retrieving a record would then be easier (I will then have to Parse it with JSON).</p>
  
  <p>I'm very new to redis and I am not sure what could be the best. What do you think ?</p>