title: Node Memcached Error : Connect did not give a server
body: <p>I am using Node-Memcached npm for my new app in node js server. In this some time only i'm getting the error when i conncet and get the data from memcache. please help me out this..</p>
  
  <blockquote>
    <p>Error : Connect did not give a server at get the chat data</p>
  </blockquote>
  
  <p>My memcache connection and get syntax is :</p>
  
  <pre><code>chatmemcached   = require('memcached'); 
  memcache = new chatmemcached(dbconfig['memcachehost'][server]+":"+dbconfig['memcacheport']);
  memcache.get("chat_"+userid, function (err,result) {
       if(err) {
           console.log("Error : "+err+" at get the chat data"); 
       } else {
           process the result;
       }
       memcache.end();
  });
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>Selva</p>