redis 模糊查询 keys 批量删除 查询结果
redis-cli -h {ip} -a {password} -n 0 keys {keys*} | xargs redis-cli -h {ip} -a {password} -n 0 del
-h ip,本地为127.0.0.1
-a password
-n 库,默认为0
keys 通配key,比如'user*'
redis-cli -n 1 keys "one:getCenterDiscount:*" | xargs redis-cli -n 1 del