diff --git a/redis/sdks/ts/commands/zset/zscan.mdx b/redis/sdks/ts/commands/zset/zscan.mdx index 5b4c35d9..a58978d3 100644 --- a/redis/sdks/ts/commands/zset/zscan.mdx +++ b/redis/sdks/ts/commands/zset/zscan.mdx @@ -38,7 +38,7 @@ await redis.zadd("key", { score: 4, member: "c" }, { score: 5, member: "d" }, ) -const [newCursor, members] = await redis.zscan("key", 0, { match: "a*"}); +const [newCursor, members] = await redis.sscan("key", 0, { match: "a*"}); console.log(newCursor); // likely `0` since this is a very small set console.log(members); // ["a", "ab"] ``` @@ -51,7 +51,7 @@ await redis.zadd("key", { score: 4, member: "c" }, { score: 5, member: "d" }, ) -const [newCursor, members] = await redis.zscan("key", 0, { match: "a*", count: 1}); +const [newCursor, members] = await redis.sscan("key", 0, { match: "a*", count: 1}); console.log(newCursor); // likely `0` since this is a very small set console.log(members); // ["a"] ```