So I have read about pipelining, and multi/exec commands. But have not been able to answer this question. Can I use the results of operation A in operation B inside redis, as to not take them out of redis. Can this be done with Lua scripting? Do this be done naturally in redis? Can I map the results in a specific way?
Share
Yes, you can with Scripting, with the limitation that it will not play nice with Redis Cluster (which is not released yet anyway).
Here is an example in Ruby, but you can do it in any language if your Redis client supports EVAL:
This snippet prints
42.