title: What better to use to cache search results in NodeJS?
body: <p>So I have search on site. When user searches for example for <code>foo</code> I need to save <code>foo</code> and all the posts data related to <code>foo</code>. Not the ID, but all the info (title, description and etc). Basically I need to have something like:</p>
  
  <pre><code>{
      'foo': [
          {'title': 'foo', 'description': 'foo'},
          {'title': 'foo', 'description': 'foo'},
          {'title': 'foo', 'description': 'foo'}
      ],
      'bar': [
          {'title': 'bar', 'description': 'foo'},
          {'title': 'foo', 'description': 'bar'},
          {'title': 'bar', 'description': 'foo'}
      ]
  }
  </code></pre>
  
  <p>At first I tried <code>Redis</code> but he immediately gave me a some problems. Most of them I somehow managed to sort, bu for example I just cant get all list of hashes like <code>search:foo:*</code> or <code>search:bar:*</code>.</p>
  
  <p>So now I'm sure if I should use <code>Redis</code> or simply use <code>MongoDB</code>. Will be there a big difference in performance if I use <code>MongoDB</code> instead of <code>Redis</code> on big lists of data?</p>