title: Redis setbit multiple bits at a time
body: <p>I am brand new to redis so I have a number of questions regarding the setbit function.</p>
  
  <p>I have a dataset of the following type:</p>
  
  <pre><code>{'items':[{'item_1':0001...1000,
             ...
             'item_n':0011...0011}
           ]
  }
  </code></pre>
  
  <p>In each item there are 10's of thousands of bits and there are hundreds of thousands of items. It seems that I can use the following to set the items:</p>
  
  <pre><code>Redis.setbit('item1', 0, 0)
  Redis.setbit('item1', 1, 0)
  Redis.setbit('item1', 2, 0)
  Redis.setbit('item1', 3, 1)
  ...
  </code></pre>
  
  <ul>
  <li>However this seems horribly inefficient. Is there anyway to set all of the bits at once? </li>
  <li>Is there someway that I can group these into a set or a hash so I can lookup what items are currently set? They change on a daily basis and I need to know what was previously written so I can analyze and delete it accordingly.</li>
  <li>How can I look up the names of the previously written items?</li>
  </ul>