fix redis strategy and add test