added redis replica cache support