tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
21 stars 1 forks source link

redis #19

Open tiancheng91 opened 5 years ago

tiancheng91 commented 5 years ago

批量清理key

scan 不回锁死redis redis-cli -p 16379 -n 10 --scan --pattern "test:*" | xargs -L 1000 redis-cli -p 16379 -n 10 del