phpnode/YiiRedis — pull request #18 by samsonradu (2013-12-24 16:51:47+00:00)
Title: prevent race condition when handling expired locks

Fixes a race condition when multiple clients detect an expired lock and are trying to release it.

See "Handling deadlocks" here: http://redis.io/commands/setnx.