News for hackers. Stuff that matters.
Re:Redis Lua scripting implemented: how to play with it. by StavrosK on Monday May 02, 2011 @09:37AM (#2506197)
That's what I was thinking as well. The question is, can redis (or lua, I guess) eval a script stored as a string? I imagine you would issue a redis EVAL where the script would be the Lua "eval(mykey)", is that possible?

Basically, 1) does Lua have an "eval" statement and 2) can Redis' EVAL read keys (I assume it can, since that's pretty much what the post says)?

Re:Redis Lua scripting implemented: how to play with it. by unsigner on Monday May 02, 2011 @09:45AM (#2506230)
1) yes, it has, loadstring() turns a string into an anonymous function which can then be called at will. 2) yes

So it seems you can set up your own stored procedures.