skip to Main Content

return result from memcached.get()?

I am using npm memcached package https://www.npmjs.com/package/memcached It is possible to return data from memcached get method? Now return data is undefined/ memcached.set('foo', 'bar', 10, function (err) { }); let data1; memcached.get('foo', function (err, data) { console.log(data); // bar data1…

VIEW QUESTION

Error: connect ECONNREFUSED into node.js when i am start my .js server file – Apache

Error: connect ECONNREFUSED Ip address:3306 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14) -------------------- at Protocol._enqueue (/App Directory Pat /node_modules/mysql/lib/protocol/Protocol.js:144:48) at Protocol.handshake (/**App Directory Path**/node_modules/mysql/lib/protocol/Protocol.js:51:23) at Connection.connect (/**App Directory Path**/node_modules/mysql/lib/Connection.js:119:18) at Object.<anonymous> (/var/www/html/app/videostatus/app.js:17:12) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at…

VIEW QUESTION
Back To Top
Search