add redis and require document