From 58122759784488b112e345b37d8b1b84b3b045e0 Mon Sep 17 00:00:00 2001 From: cryptofelon <98140254+cryptofelon@users.noreply.github.com> Date: Sun, 30 Apr 2023 02:17:39 -0400 Subject: [PATCH] docs(example): Advocate HSET (#1755) `hmset` is deprecated --- examples/hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hash.js b/examples/hash.js index 53b24fd5..d96fc0da 100644 --- a/examples/hash.js +++ b/examples/hash.js @@ -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"