Executing batches of commands using redis cli

redis

Solution

the following code works for me with redis 2.4.7 on mac

./redis-cli < temp.redisCmds

Does that satisfy your requirements? Or are you looking to see if there's a way to programmatically do it faster?

Problem

I have a long text file of redis commands that I need to execute using the redis command line interface: e.g. ``` DEL 9012012 DEL 1212 DEL 12214314 ``` etc. I can't seem to figure out a way to enter the commands faster than one at a time. There are several hundred thousands lines, so I don't want to just pile them all into one DEL command, they also don't need to all run at once.

Original source