@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
。
1条答案
按热度按时间ljsrvy3e1#
信息不足无法判断