用linux的xargs命令,把前一个命令的结果当作后一个命令的参数,比如要删除redis中所有doctor_开头的key,我们可以这么写:

redis-cli KEYS “newsearch_*” | xargs redis-cli DEL

相关文章:

  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-11-02
  • 2022-12-23
  • 2022-02-23
  • 2021-08-06
猜你喜欢
  • 2021-09-27
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案