redis常用技巧
Contents
批量删除key
cat /tmp/keys.txst | xargs -I{} -P 3 -t -n 10 ./redis-cli -p 6379 -n 0 del {}
查询QPS
watch -n 60 '/home/redis/bin/redis-cli -h 10.*.*.* -p 6379 info |grep total_commands_processe >> /tmp/qps2.txt && date >> /tmp/qps2.txt'