Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2203

What's the role of spring boot cache annotations in a application which use Redis for caching?

$
0
0

I have seen that there are set of inbuilt spring boot annotations available to perform caching in a spring boot application. As far as I know when it comes to Redis it's an famous data store which is using for caching purposes. The problem is I have seen lots of tutorials which use Redis + spring boot cache to achieve the caching. So if Redis is used as the Cache in the application why we again need Spring boot Caching annotations like @Cacheable, @CacheEvict,etc.Why we can't just perform any CRUD operation on Redis directly because we have taken it as our on memory data store for caching. Please know that I am really new to Redis. Thanks in advance.

References


Viewing all articles
Browse latest Browse all 2203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>