https://github.com/corentinb/txtoredis
:fire: Push each line of a text file, to a Redis set
https://github.com/corentinb/txtoredis
data datascience dataset go golang redis set
Last synced: about 2 months ago
JSON representation
:fire: Push each line of a text file, to a Redis set
- Host: GitHub
- URL: https://github.com/corentinb/txtoredis
- Owner: CorentinB
- License: mit
- Created: 2018-12-05T18:01:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T18:41:57.000Z (over 7 years ago)
- Last Synced: 2025-03-11T00:55:58.656Z (over 1 year ago)
- Topics: data, datascience, dataset, go, golang, redis, set
- Language: Go
- Homepage:
- Size: 4.94 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TXToRedis
Push each line from a text file, to a Redis set
# Build
Simply:
`git clone https://github.com/CorentinB/TXToRedis.git && cd TXToRedis/`
`go build .`
# Usage
`./TXToRedis [FILE] [REDIS-HOST] [REDIS-PASSWORD] [REDIS-DB] [REDIS-KEY] [CONCURRENCY]`
For example to push each line from the file `data.txt` to a set with the `ids` value, in database `0` of a Redis instance running at `127.0.0.1:6379`, secured with the password `not-secured`, with a concurrency of `512` parallel push:
`./TXToRedis data.txt "127.0.0.1:6379" "not-secured" "0" "ids" "512"`
---
# Isn't that beautiful?
