I am using Spring Redis with the @Cacheable annotiation for two methods. When I call one method I am getting a result cached for the other method.
How can it happen that I get the result from the wrong cache while I configured a different cache for each method using the @Cachebale annotation?
Setup: Spring Version 4.1.6. Redis data 1.5 and Redis client 2.7.0.
Example code:
@Cacheable("test1")
public List<String> findSgsns() {
}
@Cacheable("test2")
public List<String> findSgsns2() {
}
Aucun commentaire:
Enregistrer un commentaire