Skip to content

Commit 5812275

Browse files
authored
docs(example): Advocate HSET (#1755)
`hmset` is deprecated
1 parent 4c8eb84 commit 5812275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function main() {
1010
description: "I am a programmer",
1111
};
1212

13-
await redis.hmset("user-hash", user);
13+
await redis.hset("user-hash", user);
1414

1515
const name = await redis.hget("user-hash", "name");
1616
console.log(name); // "Bob"

0 commit comments

Comments
 (0)