redis-cli -n x keys "xxx" | xargs redis-cli -n x del 注:x为第x个数据库 转载于:https://my.oschina.net/chrisforbt/blog/2874050