redis-cli pipe 管道
来源:互联网 发布:大华网络监控 编辑:程序博客网 时间:2024/05/01 09:20
cat formattedData.txt | redis-cli -h 10.11.0.71 -p 6385 --pipe
#coding=utf-8import sys import MySQLdboutputFile = "formattedData.txt"delimiter = "\r\n"for line in result:row = []row.append( line['third_id'] )row.append( line['user_id'] )data = "*3" + delimiter + "$3" + delimiter + "set" + delimiter + "$" + str(len(row[0])) + delimiter + row[0] + delimiter + "$" + str(len(row[1])) + delimiter+ row[1] + delimiter + "\r\n" targetFd.write(data)targetFd.close()
0 0
- redis-cli pipe 管道
- 管道pipe
- 管道 pipe
- 管道(pipe)
- 管道-pipe
- pipe管道
- pipe 管道
- pipe管道
- pipe管道
- pipe管道
- 管道 PIPE
- 管道pipe
- 管道(pipe)
- 管道(pipe)
- pipe管道
- 管道pipe
- 消息管道(Message Pipe)
- 管道(Pipe)/createPipe
- Web前端面试题 -- 集锦
- 为程序开发人员量身定制的12个目标
- Leetcode: Compare Version Numbers
- STM32f103学习1-----系列命名规则
- 【桶排序】MAXIMUM GAP
- redis-cli pipe 管道
- Palindrome Number
- LinkedList 的一个错误用法
- HTTP的长连接和短连接
- 获取指定窗口信息(坐标,窗口风格)
- PHP开发经验
- PowerDesigner使用方法
- Java之BigInteger(面试题12:打印1到最大的n位数)
- hive学习笔记