title: What is the best solution for caching in clustered Node Js application?
body: <p>I used  <a href="https://www.npmjs.com/package/cluster-node-cache" rel="nofollow noreferrer">cluster-node-cache</a> with following code. </p>
  
  <pre><code>var obj = { my: "Special", variable: 42 };
          cache.set("myKey", obj).then(function(result) {
                  console.log(result.err);
                  console.log(result.success);
  
                  cache.get("myKey").then(function(result2) {
                      console.log(result2.err);
                      console.log(result2.success);
                  });
  
          });
  </code></pre>
  
  <p>This resulted in following output</p>
  
  <pre><code>null
  true
  null
  undefined
  </code></pre>
  
  <p>Certainly, with this result, <a href="https://www.npmjs.com/package/cluster-node-cache" rel="nofollow noreferrer">cluster-node-cache</a> is not a solution for caching requirement with cluster.<br>
    Please suggest best solution and why that solution is best?</p>