move redis to dao