1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +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 ```js
client.hmset("key", "foo", "bar", "hello", "world"); 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.foo); // > "bar"
console.log(value.hello); // > "world" console.log(value.hello); // > "world"
}); });