How to prevent Redis print OK or QUEUE in redis-cli command #13124
-
I execute MULTI command and redis-cli prints OK & QUEUE as default. I don't want to get those alerts |
Beta Was this translation helpful? Give feedback.
Answered by
sundb
Mar 11, 2024
Replies: 1 comment 3 replies
-
Please read document https://redis.io/docs/interact/transactions/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
since OK and QUEUED are also response, redis-cli can't do this filter, but you can use grep to do it.
echo -e "MULTI\n GET key-0\n GET key-1\n GET key-2 \nEXEC" | redis-cli -h "127.0.0.1" -p 6379 | grep -Ev "OK|QUEUED"