top of page

Redis Batch Deletion

  • taolius
  • Dec 20, 2017
  • 1 min read

$ redis-cli -h host --scan --pattern 'user:*' | xargs -L 1000 redis-cli -h host del

#/bin/bash redis-cli -h host --raw Keys '*cmdb*' > redis.txt IFS=$'\n' for i in $(cat redis.txt); do redis-cli -h 172.16.5.151 del "${i}" done

$cat redis.txt | xargs redis-cli -h host del


 
 
 

Comentarios


© 2023 by BI World. Proudly created with Wix.com

  • Facebook Basic Black
  • Twitter Basic Black
  • YouTube Basic Black
bottom of page