Make redisKeepAlive work on OSX
Merge branch 'keepalive'

Also see pull request #161.