Redis - новый для меня, и я хотел сохранить Хэши в Списке в Redis, но я не смог этого сделать, и я получил ошибку
node_redis: Deprecated: The RPUSH command contains a argument of type Object.
This is converted to "[object Object]" by using .toString() now and will return
an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
Это мой код:
let object ={
name:'jhone doe',
age:25
};
client.rpush(['key', object], function(err, reply) {
if(err){
console.log(err);
}
console.log(reply);
});
Пожалуйста, помогите мне.