redis bulk delete key operations

There are many online about bulk delete command, for example, we want to remove that begin with the key KEY. When 127.0.0.1:6379 linux system when displayed, using the following command

redis-cli -h 192.168.1.1 -p 6379 -a yourpassword keys "keys *" | xargs redis-cli del findings do not work.

Need to exit redis, enter the following command from linux root directory:

 /usr/redis/bin/redis-cli -h 192.168.1.1 -p 6379 -a yourpassword  keys "keys*" | xargs redis-cli -h 192.168.1.70 -p 6779   -a yourpassword  del

More emphasis redis-cli installation directory / usr / redis / bin / redis-cli

Guess you like

Origin www.cnblogs.com/wishbay/p/11237369.html