setting template for redis