yum install unix2dos
安装转换格式的工具
如何大批量往redis中写入数据

unix2dos test.txt
将文件转换成redis-cli能识别的格式
cat test.txt | redis-cli -h yourhost -p yourport -a yourpassword -n yourdatabase --pipe
经测试 插入1500w数据仅不到一分钟就执行完毕

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2021-12-29
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案