I am trying to generate a file for mass insertion in shape:
SET Key0 Value0
SET Key1 Value1
...
SET KeyN ValueN
In my case, I have newlines in values. How to write values in this case since \n means new command. Can I use quotation mark to wrap a value with a newline character?
SET key "value with \n in between"but I still getERR unknown command. It looks like that Redis still interpret newlines inside values as a start of the new command. So how can I wrap values with newlines inside that will not raise this error.