julienXX/resque-waiting-room — pull request #7 by johnnyiller (2014-11-19 00:42:57+00:00)
Title: fixing ttl stuck bug edge case

Fixing the bug where sometimes a key fails to set an expiration time properly so it ends up with a negative ttl in redis. The fix is to check the ttl before setting the key. if it's negative we know that we need to create a completely new key and not just increment the counter down.