8000 GitHub - CorentinB/TXToRedis: :fire: Push each line of a text file, to a Redis set
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CorentinB/TXToRedis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🔥 Push each line of a text file, to a Redis set

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0