I want to display the ttl of all the keys I have in Redis at once from the redis-cli shell.
I tried things like
redis-cli keys * | xargs redis-cli TTL
But it's not working, I keep getting the error:
(error) ERR wrong number of arguments for 'ttl' command