title: Key-Value doc as list type in Couchbase
body: <p>I want to know if there ability to add into couchbase multiple docs having the same key. so a key could act as key for list of values.</p>
  
  <p>So when I want to retrieve a key's value ill be able to get all values as list/array and somehow order them by insert time, etc..</p>
  
  <p>Any idea if I could achieve that design in couchbase?</p>
  
  <ul>
  <li>I know that in Redis you can append to the same key multiple values</li>
  </ul>
  
  <p>Example of document:</p>
  
  <p>The key is the username: JohnD
  and the value is document with details and last login time like this:</p>
  
  <pre><code>{"firstName":"John", "lastName":"Doe", "status":"success", "lastloginDate":"2013-04-14:22:30:14"}
  </code></pre>
  
  <p>The user is going to login couple of times and I want to record each time he logs in with some extra details.</p>
  
  <p>now in some point I want to retrieve that list sorted by time and get specific item from it. </p>
  
  <p>thanks.</p>