I have declared a method as Cacheable using spring cache abstraction as under:
@Cacheable(value="users", key="email", condition="incAddress == false")
public User getUserData(String email, boolean incAddress){
....
}
When I am trying to hit this method I am getting the following error:
annot find cache named [users] for CacheableOperation[public com.lrm.purple.domain.User com.lrm.purple.dao.impl.UserDAOImpl.getUserData(java.lang.String,boolean) throws org.springframework.dao.DataAccessException] caches=[users] | condition='incAddress == false' | key='email'
Do I need to configure the cache named `users` somewhere in my application context or any other configuration files. If yes, how do I configure multiple caches: "users", "deals", "rewards" etc.
I have attached the applicationContext for your reference.