fix compile error when using more than one redis instance.