1.退出redis

2.匹配product开头的所有key*删除

 

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


ps:密码没有请忽略

3.redis返回删除条数

 

(integer) 4

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

如果报错  

-bash: !@#789: event not found

在bash中,

 

!有着特殊的含义;

只需在!前加上\(对!进行转义),也即\!",即可打出感叹号了。也可以登录了


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

相关文章:

  • 2021-09-27
  • 2021-09-20
  • 2022-03-05
  • 2022-12-23
猜你喜欢
  • 2021-09-18
  • 2021-05-11
  • 2021-06-25
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案