Spring caching uses key
parameter as the cache key or the parameter passed to the function if key
is not present. What will be the key
if both the key and function parameter are missing?
Consider the folllowing case where neither key
parameter nor function parameter exists. How spring caching work in such a case?
@Cacheable(value="cacheTest")
public string sayHello(){
return "hello"
}