antirez/redis — pull request #992 by ltnwgl (2013-03-09 08:54:39+00:00)
Title: Simplify and optimize function setKey()

1. The function setKey() call dictFind() 3 times before actually write db->dict !!
2. No need to call expireIfNeeded(), if the key is in db->expires, its value will be overwrite and it will be removed from db->expires eventually.