antirez/redis — pull request #995 by ltnwgl (2013-03-10 12:50:23+00:00)
Title: Simplify and optimize function setKey()

1. The function setKey() call dictFind() 3 times before actually write db->dict !!
2. We can call removeExpire() only when the key is overwritten.
3. Latest version patch already add expireIfNeeded()