Redis is an open source, in-memory data store which is widely used various projects across the globe. Mostly renowned for its prowess in cache management.
Testcontainers is a Java library used for unit tests. It helps in writing JUnit tests which are focused on validating features that require external component like database or web browsers. Under the hood it creates instances in docker container which are used by the test case to validate the functionality. Instances created are lightweight and can be destroyed once unit tests are completed.
In the below video. I have demonstrated how to create a Redis container, interact with it using a Java program and finally test the Java program using Testcontainers which will create a Redis container on the fly for unit test.


