title: How do I store this type of nested object in redis?
body: <pre><code>{
      "chats": {
          "Main": {
              "3": {
                  "u": "George",
                  "n": "G",
                  "f": "1",
                  "a": "http://example.com/a.png"
              },
              "4": {
                  "u": "Lisa",
                  "n": "L",
                  "f": "1",
                  "a": "http://example.com/b.png"
              }
          }
      }
  }
  </code></pre>
  
  <p>I normally store this in an object in node.js</p>
  
  <p>I'll also need to be able to send this data to users. An example of what I would need to do is send all of the users in a chat to a new user who signed in.</p>
  
  <p>So that would simply be: <code>users = obj.chats.Main</code></p>
  
  <p>But I can't figure out how to store it in redis, let alone how I would grab data and parse it back into an object to send to a user.</p>
  
  <p>This object will get fairly large as more users sign in, so let's say for example there are 100,000 users signed in at a time, maybe 20 users on each different chat.</p>
  
  <p>I kind of need a set within a set to make this work, but I don't think that's possible with redis</p>