一句话总结:
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 -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 通配符删除keys
本文链接:https://www.haomeiwen.com/subject/alfcuhtx.html
网友评论