Redis modules allow for new capabilities like machine learning models to be added to Redis. The Redis-ML module stores machine learning models like random forests and supports operations like model training, evaluation, and prediction directly from Redis for low latency. Spark can be used to train models which are then saved as Redis modules, allowing models to be easily deployed and accessed from services and clients.