Hello!
On Wed, Jan 9, 2013 at 8:10 AM, tolisoft wrote:
> When the record exists I want to sleep for an while and after that I want to
> try adding the key again.
> Which is the best way for sleep in lua ...
>
Use ngx.sleep(), which is nonblocking:
http://wiki.nginx.org/HttpLuaModule#ngx.sleep
Best regards,
-agentzh