Spring缓存。如果没有键和参数,缓存键是什么
Spring Caching. what is the cache key if there is no key as well as parameter
Spring 缓存使用 key
参数作为缓存键或如果 key
不存在则传递给函数的参数。如果缺少键和函数参数,key
会是什么?
考虑以下情况,其中 key
参数和函数参数都不存在。在这种情况下,spring 缓存如何工作?
@Cacheable(value="cacheTest")
public string sayHello(){
return "hello"
}
Spring 缓存使用 key
参数作为缓存键或如果 key
不存在则传递给函数的参数。如果缺少键和函数参数,key
会是什么?
考虑以下情况,其中 key
参数和函数参数都不存在。在这种情况下,spring 缓存如何工作?
@Cacheable(value="cacheTest")
public string sayHello(){
return "hello"
}