jetcache icon indicating copy to clipboard operation
jetcache copied to clipboard

@CacheInvalidate can't find @Cached definition

Open ops-xu opened this issue 2 years ago • 1 comments

@CacheInvalidate(name = AliCacheConstant.XXX, key = "#XXX.iotId")
String buyXXX(XXX xxx) throws CloudStorageException;
@CreateCache(name = AliCacheConstant.XXX, cacheType = CacheType.BOTH, timeUnit = TimeUnit.SECONDS, expire = 5*60)
private Cache<String, X> X;

缓存创建是由其他方法通过cacheutil创建的。目前是当我还没有调用对应创建cache的方法时,先调用带有CacheInvalidate注解的方法时,会报错Cache operation aborted because can't find @Cached definition

ops-xu avatar Aug 17 '22 02:08 ops-xu

信息不足无法判断

areyouok avatar Aug 17 '22 08:08 areyouok