simplify the option for redis store
tidy the code