How can I set redis at boot in my own app?

I do not want to modify frappe.

Can you explain what are you trying to do?