I am using Node.js and a Redis Database . I am new to Redis .
I am using the https://github.com/mranney/node_redis driver for node.
Initialization code -
var redis = require("redis"),
client = redis.createClient();
I tried setting up some key value pairs -
client.hset("users:123" ,"name", "Jack");
I wish to know I can get the name parameter from Redis via Node .
I tried
var name = client.hget("users:123", "name"); //returns 'true'
but it just returns 'true' as the output. I want the value ( i.e - Jack ) What is the statement I need to use ?