prepare for redis storage