add redis method