I'm using redisson with a jcache abstraction, simply put I have this:
public class MyService{
@Cacheable("cacheA")
public String returnSomethingAfterLongTime(String parameter){
//...
}
@Cacheable("cacheA")
public String returnSomethingElse(String parameter){
}
}
Problem is that both of them create a redis key like "cacheA::parameter", in other words the class and method name are not taken into account.
This causes a problem if the string "parameter" is a common word because I have to be aware of every part of code where "cacheA" is used so to make sure that no inefficiency is brought up due to the fact that the "parameter" key could be replicated among calls.
Is there something that I'm doing wrong?