redis-cli -n 数据库编号 -a 密码 keys "过滤条件" | xargs redis-cli -n 数据库编号 -a 密码 del

Demo:

redis-cli -n 1 -a OM2FbRVGHBM keys "*api_trade*" | xargs redis-cli -n 1 -a OM2FbRVGHBM del

相关文章:

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