If you’re getting an error that reads “ERR numkeys should be greater than 0” in Redis, it’s probably because you’re specifying a wrong value for the first argument when calling the SINTERCARD
command.
To fix this issue, make sure you’re passing a valid non-zero value that matches the number of keys you’re comparing.
Continue reading