Oct 9th, 2012, 03:56 AM
Adding custom logic to @Cacheable
Is there a way in which one can add some logic to the @Cacheable aspect?
Can this be done by an aspect which would intercept all the @Cacheable services? And then, you would have to specify which of the aspects to run first (yours, or the Cacheable one)?
I am thinking of a simple case, just logging some info, then invoking the default behavior.
Oct 9th, 2012, 05:23 AM
I suggest a read of the reference guide, especially the AOP part this explains how to specify aspects and how to specify/control the order of execution...