Using redis and node.js issue: why does redis.get return false?
i could bet get is asynchronous, so you would get the value by callback.
Edit:
It's really asynchronous: file.js
Here you go! For ES6
redis_client.get("hello", (err, data)=>{
if(err){
throw err;
}
console.log(data);
});
For ES5
redis_client.get("hello", function(err, data){
if(err){
throw err;
}
console.log(data);
});