assign redis to app