Annotation @CachePut not working, but method .put does
I tried the annotation @CachePut in the method updateCategoryCacheForCountry and it wasn’t working. But
when doing so programatically by getting the cache and using .put it works fine. What could be the reason?
I’m using Spring Cache. The method is being called by a @Scheduled method.