Re: Open Resty

26 views
Skip to first unread message

agentzh

unread,
Aug 19, 2012, 6:13:30 PM8/19/12
to Praveen Saxena, openresty-en
Hello!

On Sun, Aug 19, 2012 at 12:55 PM, Praveen Saxena wrote:
> Quick question, does the Lua-Resty-Redis driver accept custom Redis commands? And if so,how can we do that? We have developed some custom Redis commands that do not exist in the regular Redis database and we want to call those custom commands using the Lua driver. Perhaps this can be done using the Eval command.....
>

I've just committed a patch to lua-resty-redis's git master and added
a new class method "add_commands":

https://github.com/agentzh/lua-resty-redis/commit/f2b3656

The documentation is here:

https://github.com/agentzh/lua-resty-redis#add_commands

No "eval"-like things are needed here :)

BTW, I'm cc'ing the openresty-en mailing list:
http://groups.google.com/group/openresty-en

Regards,
-agentzh

Praveen Saxena

unread,
Aug 19, 2012, 7:32:32 PM8/19/12
to agentzh, openresty-en
That was super fast!! Thanks much agentzh. :)

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages