redis-cli -h 127.0.0.1 -p 8090 -a 1234 -n 14 --raw dump key | perl -pe 'chomp if eof' | redis-cli -h 127.0.0.1 -p 8090 -a 1234 -n 15 -x restore key 0
-h hostip,
-p port,
-a password,
-n db library,
The --no-raw option is to require that the return result of the command must be in the original format,
--raw is the exact opposite, returning the formatted result,
The -x option stands for reading data from standard input (stdin)