How to use Redis mass insertion?

前端 未结 3 2061
小蘑菇
小蘑菇 2020-12-17 10:53

I\'ve read mass-insert provided at redis.io, but it really confused me. I tried to make a file then use \"cat data.txt | redis-cli --pipe\" to insert:

           


        
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 11:23

    You can do it like this:

    echo -e "$(cat data.txt)" | redis-cli --pipe
    

    I hope that helps you!

提交回复
热议问题