1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Update README.md

This commit is contained in:
Likai Ren
2021-02-03 13:25:37 +02:00
committed by GitHub
parent 0041e3e53d
commit e4cb073be2

View File

@@ -394,7 +394,7 @@ responses using JavaScript syntax.
```js
client.hmset("key", "foo", "bar", "hello", "world");
client.hgetall("hosts", function(err, value) {
client.hgetall("key", function(err, value) {
console.log(value.foo); // > "bar"
console.log(value.hello); // > "world"
});