You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore(examples): fix examples for v5 (#2938)
This commit is contained in:
committed by
GitHub
parent
bd5c230c62
commit
2c9ad2e772
@@ -9,7 +9,7 @@ const client = createClient();
|
||||
await client.connect();
|
||||
|
||||
// Use `pfAdd` to add an element to a Hyperloglog, creating the Hyperloglog if necessary.
|
||||
// await client.pfAdd(key, value)
|
||||
// await client.pfAdd(key, value) // returns 1 or 0
|
||||
|
||||
// To get a count, the `pfCount` method is used.
|
||||
// await client.pfCount(key)
|
||||
@@ -48,4 +48,4 @@ try {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
client.destroy();
|
||||
client.close();
|
||||
|
Reference in New Issue
Block a user