I don't know the complexity or implications, but I wonder if the simpler approach is for time to not progress during scripts : the time is whatever time it was started at, no matter how long it takes - then expiry can't happen "during" the script.
Marc
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/groups/opt_out.
This is brillant! Your idea turns the implementation of the most sane behavious (expire at first lookup or never) into a trivial one with minimal CPU costs :-) if we are in the context of a script we can just expire against the script start time instead of the current time. I'm glad I posted this... Testing the idea and checking the implications and replying back.