While EXISTS is useful to see if something exists, it would be more useful when using an array to return an array to know what keys actually exist or not, a simple [0,1] or [nil,1] would be great.
Comment From: itamarhaber
Hello @gittyup2018
If I understand correctly, you're suggesting a variadic form for EXISTS, i.e: EXISTS <key> [<key> ...]
That's a good idea, but changing EXISTS reply type now would break compatibility. While it may be possible that a new command will be added for that (e.g. MEXISTS), you can use other means for similar results such as a Redis Lua script:
local reply = {}
for _, v in pairs(KEYS) do
reply.insert(redis.call('EXISTS', v))
end
return reply
```
Comment From: gittyup2018
Ahh right yes, MEXISTS would be a useful addition I believe and thanks for the script work around