云锦诚科技专注四川德阳网站设计 四川网站制作 四川网站建设
四川德阳网站建设公司服务热线:028-86922220
网站建设
移动开发
小程序开发
运维推广
网站推广
网站推广
运维外包
运维外包
网站报价
经典案例
网站知识
关于我们
网站建设知识
十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
Redis批量导入文本数据
# 查看导入的文本文件,里面是具体的redis命令
# cat 20180208.txt
hdel user.user.base 317986
hdel user.user.base 371149
hdel user.user.base 370964
hdel user.user.base 371291
hdel user.user.base 370906
hdel user.user.base 371035
hdel user.user.base 371086
hdel user.user.base 371042
hdel user.user.base 370838
hdel user.user.base 371347
hdel user.user.base 371065
hdel user.user.base 371280
hdel user.user.base 371307
在redis-cli客户端工具中,有管道选项
# redis-cli --help
--pipe Transfer raw Redis protocol from stdin to server.
执行数据导入
# cat 20180208.txt | /usr/bin/redis-cli --pipe
All data transferred. Waiting for the last reply...
Last reply received from server.
errors: 0, replies: 593
本文标题:Redis批量导入文本数据
当前路径:
http://www.xiwangwangguoyuan.com/article/gocpci.html
其他资讯
go语言学习中文教程 go语言简明教程
c语言函数调用找出最大值 c语言函数调用求最大值
mysql怎么写储存 mysql怎么存文件
go语言打印时不想换行 golang 换行
java比较基础的源代码 java比较基础的源代码有哪些