While this is not strictly a Redis issue, maybe somebody in this forum can offer suggestions as to how to get around the issue that I am inquiring about.
From the Redis command line I can do things like the following:
With this, I have the following:
$ redis-cli GET foo
"Line 1\nLine 2"
$ redis-cli --raw GET foo
Line 1
Line 2
We now do the same thing but taking a somewhat different approach from the Linux command line:
$ redis-cli SET foo "Line 1\nLine 2"
OK
$ redis-cli GET foo
"Line 1\\nLine 2"
$ redis-cli --raw GET foo
Line 1\nLine 2
Anybody know how to prevent that extra backslash from being added?