An open API service indexing awesome lists of open source software.

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

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?

![Example](example.gif)