redis delete start with what key

1. Exit redis

All key 2. matches the beginning of the product * Remove

 

redis-cli -a 你的密码 keys 'product*' | xargs redis-cli -a 你的密码 del


ps: Password not ignore

Returns the number of deleted 3.redis

 

(integer) 4

https://blog.csdn.net/guoyanga1/article/details/79087334

If the error   

-bash:! @ # 789: event not found

In bash,

 

!It has a special meaning;

Just !before adding \(to !escape), that is \!", you can play the exclamation point. You can also log in


https://blog.csdn.net/wzqzhq/article/details/64907155

Guess you like

Origin www.cnblogs.com/angdh/p/11956920.html