redis-cli -h $READONLY_REDIS_NODE --scan --pattern prefix:pattern::* | awk '{print $1}' | sed "s/^/'/;s/$/'/" | xargs redis-cli -h $MAIN_REDIS_NODE del
https://stackoverflow.com/a/58879388/7548600 참고
반응형
redis-cli -h $READONLY_REDIS_NODE --scan --pattern prefix:pattern::* | awk '{print $1}' | sed "s/^/'/;s/$/'/" | xargs redis-cli -h $MAIN_REDIS_NODE del
https://stackoverflow.com/a/58879388/7548600 참고