ServiceStack/ServiceStack.Redis — pull request #97 by mikkelfish (2012-10-22 22:57:55+00:00)
Title: Fixed lock

RedisLock did not clear locks from redis when they are timed out, so a
client failing to release a lock created a permanent deadlock (the lock
would throw a TimeoutException if one was supplied but that's not
particularly helpful if you can't clear the remote lock).

I've implemented the design pattern described at
http://redis.io/commands/setnx in order for locks to properly flush and
included a unit test to verify.

[Sorry about the extra commits. I updated my fork per http://bassistance.de/2010/06/25/git-fu-updating-your-github-fork/ and can't figure out how to get rid of them!]