Redis模糊匹配批量删除key

/ 默认分类 / 0 条评论 / 1600浏览

模糊匹配

redis-cli -a 密码 keys "*abcd*" | xargs redis-cli -a 密码 del

出现以下报错可忽略

Using a password with '-a' or '-u' option on the command line interface may not be safe.