jetcache @CacheInvalidate can't find @Cached definition

6pp0gazn  于 2022-11-02  发布在  其他
关注(0)|答案(1)|浏览(401)
@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

相关问题