Skip to content

Commit

Permalink
docs(example): Advocate HSET (#1755)
Browse files Browse the repository at this point in the history
`hmset` is deprecated
  • Loading branch information
cryptofelon authored Apr 30, 2023
1 parent 4c8eb84 commit 5812275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function main() {
description: "I am a programmer",
};

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

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

0 comments on commit 5812275

Please sign in to comment.