I need to get a list of all streams (keys) in a database but I can't find a command for it.
I've already tried going over all keys and checking their typebut it is too slow/expensive.
I'd like to do something like XSCAN
and get a list of keys like: ["stream1", "stream2"]
As of version 6.0 you can use the TYPE option to ask SCAN to only return objects that match a given type.
SCAN 0 TYPE stream
https://redis.io/commands/scan
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With