redis bulk import using --pipe

后端 未结 6 1303
情深已故
情深已故 2020-12-30 11:56

I\'m trying to import one million lines of redis commands, using the --pipe feature.

redis_version:2.8.1

cat file.txt | r

6条回答
  •  半阙折子戏
    2020-12-30 12:46

    You can use the following command to import your file's data to redis

    cat file.txt | xargs  -L1 redis-cli 
    

提交回复
热议问题