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.
↧
What's the role of spring boot cache annotations in a application which use Redis for caching?
↧