make the redis as an attribute of the app controller