defunkt/redis-namespace — pull request #42 by dbalatero (2012-08-22 20:18:17+00:00)
Title: Make sure to namespace keys for EVAL/EVALSHA.

*I'd like to get this in ASAP, as this ties in with my work with @bvandenbos on making `resque-scheduler` more failure resistent. Thanks!*

-----

The call semantics for both these methods are pretty specific, and require their own special case :(

Ex:

# Both these are valid!
redis.eval("return KEY[1]", %w[key1], %w[arg1 arg2])
redis.eval("return KEY[1]", :keys => %w[key1], :argv => %w[arg1 arg2])

Any keys passed to Lua need to retain the correct namespace, which this pull request addresses.