jetcache icon indicating copy to clipboard operation
jetcache copied to clipboard

请问可以实现单个key缓存时间和是否开启的可配置化吗

Open hjjdazzling opened this issue 1 year ago • 2 comments

hjjdazzling avatar Aug 02 '22 11:08 hjjdazzling

有个condition属性可以写表达式

areyouok avatar Aug 03 '22 02:08 areyouok

Cached 注解 expire 可以设置

@Cached(name = "jetcache::product::", key = "#productId", postCondition = "#result != null", expire = 3600, cacheType = CacheType.REMOTE)
public Product get(Long productId){
   // TODO
}

greatwqs avatar Aug 23 '23 08:08 greatwqs