-
-
Save cerdman/8d31d1236b88de52b19a821e8398dda8 to your computer and use it in GitHub Desktop.
redis mass insertion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The text file data.txt contains the following | |
ZADD myzset 1 a | |
ZADD myzset 1 b | |
ZADD myzset 1 c | |
Run this command to read from data file and insert to redis: | |
cat data.txt|xargs -n 4 redis-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment