antirez/redis — pull request #483 by JeffersonK (2012-04-26 18:49:26+00:00)
Title: Config nondeterministic lua

I had a use case for enabling this because I need to adjust the value to a key depending on the amount of server time that had elapsed since it was last written to.

For lack of a better name I implemented "time decaying lazy counters" using a LUA script and INCR.

The option is named "lua-nondeterministic-calls" and is disabled by default for obvious reasons.

I modified default.conf in tests/assets/ and all the tests pass when it is "no" or not set.

The 2 tests you would expect to fail do fail when it is enabled.

-- Jeff