I have a simple spring web application, which is connected to a Postgre db. My question is I have method in dao, which is annotated with @Cacheable. Is there a way to log if the method goes to db, or its result is loaded from cache? For example, I'd like to see the following log:
The value is retrieved from db.... The value is retrieved from cache