Please refer to this entire blog to understand how to implement Redis in your spring boot application, and you will get an idea about all these annotations.