Using Redis for Caching and Real-Time Updates in a Flask Web Application