How to make usage of provided caching mechanism?
Posted: Thu Feb 20, 2014 7:35 am
Hi,
in my core module, I've created Service and it's implementation.
e.g.
interface PostcodeService and class PostcodeServiceImpl.
There is one method e.g. String retrievePostcodeFrom3rdPartyService(Customer customer);
I want to use cache mechanism provided by broadleaf framework, e.g. blCacheManager.
How to do that?
I've tried adding @Cacheable(value="name", key="customer.id") at interface, defined name of cache in bl-override-cache.xml, but instead of caching this service, in debug mode I see that this method is triggered and code runs through this method.
Thank You
in my core module, I've created Service and it's implementation.
e.g.
interface PostcodeService and class PostcodeServiceImpl.
There is one method e.g. String retrievePostcodeFrom3rdPartyService(Customer customer);
I want to use cache mechanism provided by broadleaf framework, e.g. blCacheManager.
How to do that?
I've tried adding @Cacheable(value="name", key="customer.id") at interface, defined name of cache in bl-override-cache.xml, but instead of caching this service, in debug mode I see that this method is triggered and code runs through this method.
Thank You