Answer the question
In order to leave comments, you need to log in
How to store numbers in Redis?
There is an application on Node.js and a Redis server where values ​​are written in the form
client.hmset(id, {
'name': 'John',
'age': 25
})
client.hgetall(id, function(err, obj){
console.log(obj.age); // 25
console.log(typeof(obj.age)); // String
})
Number(obj.age);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question