redis bulk import using --pipe

后端 未结 6 1173
情深已故
情深已故 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:43

    This error happens because the timeout set in Redis is Default, 0. You need to configure this timeout value by redis-cli using the command below:

    To connect in redis server: redis-cli -h -p -a

    To view timeout value configured: this command-line: config get timemout, Works to see what is the timeout value was configured in Redis server.

    To Set new value for redis timeout: this command-line: config set timeout 120, Set the timeout to 2 minutes. So, you need to set the redis timeout so long your execution need.

    I hope this answers help you. Cyu!!!

提交回复
热议问题