Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)?



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: