yangxin

Results 3 comments of yangxin

@ChangedenCZD https://github.com/eggjs/egg-redis/blob/83d54044eff260fc3d704a394c410469f4e8b89e/lib/redis.js#L19 egg-redis 要求必须写 password,但如果配置了默认密码,每个 node 还必须设置 password: null 会显得很冗余,只是一个小建议。 是否有必要对这个密码参数的进行校验?直接交给 ioredis 处理会有什么问题呢?望指导

@ChangedenCZD 使用redisOptions中的password,是 ioredis 的默认行为,个人感觉 egg-redis 没有必要每个 node 都检测一遍。不知道是否有其他原因导致这里必须要检查?

I encountered the same problem. My reason was the auto-load of .nvmrc. Disabling this feature makes everything work fine.