1、批量删除redis键值:
echo 'keys _flag*' | /usr/local/kk-mail/service/redis/bin/redis-cli | awk '{print $1}' | xargs -I {} echo 'del {}' | /usr/local/kk-mail/service/redis/bin/redis-cli
本文共 223 字,大约阅读时间需要 1 分钟。
1、批量删除redis键值:
echo 'keys _flag*' | /usr/local/kk-mail/service/redis/bin/redis-cli | awk '{print $1}' | xargs -I {} echo 'del {}' | /usr/local/kk-mail/service/redis/bin/redis-cli
转载于:https://blog.51cto.com/net881004/2163543