title: Redis cache vs using memory directly
body: <p>I have not used Redis yet, but I heard about it and plan to try it as cache storing.</p>
  
  <p>I heard Redis using memory as cache store database, so what's the difference if I use a variable as an object or dictionary datatype to store data? like:</p>
  
  <pre><code>var cache = {
      key: {
  
      },
      key: {
  
      }
      ...
  }
  </code></pre>
  
  <p>What's the advantage Redis have?</p>