to be
a problem slover

redis batch add or delete key from file

batch export keys to file

redis-cli -a $passwd keys "$key" > key_export.txt

batch add keys from file

for i in `cat /tmp/t.txt`; do redis-cli -a pass set $i 1; done

batch delete keys

redis-cli -a $passwd keys "$key" | xargs redis-cli -a $passwd del
赞(0) 打赏
欢迎转载,注明出处:刘世明的博客 » redis batch add or delete key from file

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下作者

支付宝扫一扫打赏

微信扫一扫打赏