add redis cache but  some bugs