antirez/redis — Issue #372: Lua Log Access
Author: dlecocq
Created: 2012-03-06 23:38:59+00:00
State: open

I've been really enjoying the Lua support in Redis. It takes what is already a stellar system and makes it better.

That said, there are two things that I'm wondering couldn't be made available:

1. Support for outputting to logs. I completely understand the reasons you have to removing access to the filesystem, but I could certainly make debugging easier, though I know that debugging support has been mentioned elsewhere. Perhaps a write-only file that can be configured to a path other than the redis log? Or maybe just to the redis log? Just a thought.

2. Support for system time access. Again, I understand the reason that this isn't supported, but it would be extremely useful to have access to a synchronized clock between clients for locking mechanisms. Perhaps a arguments into scripts with a keyword like `<>` could be replaced with the current system time, so that the system time when it was processed can be conveyed correctly to the lua script, the AOF and any connected slaves.

I had posted a comment to this effect in the Disqus comments under `EVAL`, but I wasn't sure if that was the right context for a request / whether it would get read. If you did see it, though, please forgive the double-posting.