集群模式命令:
redis-cli -c -h xxx.com KEYS "test:*" | xargs redis-cli -c -h xxx.com DEL
普通模式命令:
redis-cli -h xxx.com KEYS "test:*" | xargs redis-cli -h xxx.com DEL
redis-cli -h xxx.com -p 6379 --scan --pattern test:* | xargs redis-cli -h xxx.com -p 6379 unlink
评论 (0)