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
@tiye@sonht1109 you can loop over cluster.masters and use scan/scanIterator on each client:
constresults=awaitPromise.all(cluster.masters.map(asyncmaster=>{constclient=awaitcluster.nodeClient(master);// you can use client.scan or client.scanIterator here}));
Description
I was using
SCAN
sinceKEYS
is not allowed in production mode. However as I move to cluster mode, running the same code base, I was told:It looks like the code does not expose
SCAN
on purpose...node-redis/packages/client/lib/cluster/commands.ts
Line 343 in 294cbf8
In my case I want to scan a list of keys I want to delete, what's the suggested way to do this in cluster mode with node-redis?
The text was updated successfully, but these errors were encountered: