batch export keys to file
redis-cli -a $passwd keys "$key" > key_export.txt
batch add keys from file
for i in `cat /tmp/t.txt`; do redis-cli -a pass set $i 1; done
batch delete keys
redis-cli -a $passwd keys "$key" | xargs redis-cli -a $passwd del
最新评论