redis bulk import using --pipe

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

    There are existing tools that convert client commands directly to redis wire protocol messages. Example:

    redis-mass my-client-script.txt | redis-cli --pipe option

    https://golanglibs.com/dig_in/redis-mass https://github.com/almeida/redis-mass

提交回复
热议问题