当我使用client.set('hi', 'there')时,我得到了Uncaught ClientClosedError: The client is closed redis,所以我不得不使用:它起了作用,但后来我得到了一个未解决的承诺,所以我不得不使用await它当时起了作用,但现在当我使用client.hset('german', 'red&
Redis命令HMSET从版本4开始就是deprecated了,他们建议使用HSET。但当我尝试这样做时,我得到了一个不同的弃用警告。现在我尝试用db.hset替换它,但这会触发: node_redis: Deprecated: The HSET command contains a argument of type Object.在Redis数据库中存储对象的正确方式是什么? RedisHSET的文档指出:“从Redis 4.0.