You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It mentions getSlotMaster() but no explanation on how to use it.
Also the code says it's deprecated and we should use slots() instead, which I couldn't find docs for.
Any idea on how I can approach this?
The text was updated successfully, but these errors were encountered:
client.slots - if you want to get the client of a specific slot client.shards - if you want to work on a "per shard" (master + it's replicas) basis. client.masters - just the masters client.replicas - just the replicas
Description
I'm using createCluster as a client instance to run commands like GET and SET.
const client: RedisClusterType = createCluster(options)
I want to implement a deleteAllKeys function but
RedisClusterType
doesn't have FLUSHALL.The only Info I could find is here in the docs:
https://github.com/redis/node-redis/blob/HEAD/docs/clustering.md
It mentions
getSlotMaster()
but no explanation on how to use it.Also the code says it's deprecated and we should use
slots()
instead, which I couldn't find docs for.Any idea on how I can approach this?
The text was updated successfully, but these errors were encountered: