Variables from context gone after using redis #1702
-
Hi, I need to work with a variable with the redis module multiple times. Im using KeyDB instead of redis since I need to set TTL on subkeys in a hashset. My pipelines are the following
To set args for the command we have to set the the args_mapping's root param. Not sure if this context is pipeline step specific or global, but with the first redis command I'm actually losing the var this.ip in the second step.
So basically is I use redis in any step I lose the content in my this context. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @fr6nco, the |
Beta Was this translation helpful? Give feedback.
Hey @fr6nco, the
redis
processor replaces the contents of the input message with the result of the operation. As mentioned in the documentation that I linked, you can work around that by wrapping yourredis
processors inbranch
processors. Hope that helps.