30 ms·
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
by StavrosK 16y ago
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)?
- unsigner 16y ago1) 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.