# 默认
$ redis-cli keys "tang*" | xargs redis-cli del
# 无密码
$ redis-cli -h localhost -p 6379 keys "tang*" | xargs redis-cli -h localhost -p 6379 del
# 有密码
$ redis-cli -h localhost -p 6379 -a xxx keys "tang*" | xargs redis-cli -h localhost -p 6379 -a xxx del
redis批量删除指定规则的key
最新推荐文章于 2024-08-29 11:38:13 发布