@Override @CacheEvict("testCache") public void invalidate(Object arg1) { }
private CacheEvictOperation parseEvictAnnotation( AnnotatedElement ae, DefaultCacheConfig defaultConfig, CacheEvict cacheEvict) { CacheEvictOperation.Builder builder = new CacheEvictOperation.Builder(); builder.setName(ae.toString()); builder.setCacheNames(cacheEvict.cacheNames()); builder.setCondition(cacheEvict.condition()); builder.setKey(cacheEvict.key()); builder.setKeyGenerator(cacheEvict.keyGenerator()); builder.setCacheManager(cacheEvict.cacheManager()); builder.setCacheResolver(cacheEvict.cacheResolver()); builder.setCacheWide(cacheEvict.allEntries()); builder.setBeforeInvocation(cacheEvict.beforeInvocation()); defaultConfig.applyDefault(builder); CacheEvictOperation op = builder.build(); validateCacheOperation(ae, op); return op; }
@Override @CacheEvict(cacheNames = "testCache", allEntries = true) public void evictAll(Object arg1) { }
@Override @CacheEvict("testCache") public void invalidate(Object arg1) { }
@Override @CacheEvict(cacheNames = "testCache", allEntries = true) public void evictAll(Object arg1) { }
@Override @CacheEvict(cacheNames = "testCache", allEntries = true) public void evictAll(Object arg1) { }
@CacheEvict(allEntries = true) public void clear() { } }
@Override @CacheEvict(cacheNames = "testCache", key = "#p0") public void evict(Object arg1, Object arg2) { }
@Override @CacheEvict(cacheNames = "testCache", key = "#p0") public void evict(Object arg1, Object arg2) { }
@Override @CacheEvict("testCache") public void invalidate(Object arg1) { }
@Override @CacheEvict(cacheNames = "testCache", key = "#p0") public void evict(Object arg1, Object arg2) { }
@Override @Caching(evict = { @CacheEvict(key = "'md5:'+#entity.md5"), @CacheEvict(key = "'id:'+#result"), @CacheEvict(key = "'id-or-md5:'+#result"), @CacheEvict(key = "'id-or-md5:'+#result") }) public String insert(FileInfoEntity entity) { return super.insert(entity); }
@Override @CacheEvict(cacheNames = "testCache", allEntries = true) public void evictAll(Object arg1) { }
@Override @CacheEvict("testCache") public void invalidate(Object arg1) { }
@Override @Caching(evict = { @CacheEvict(key = "'md5:'+#target.selectByPk(#id).md5"), @CacheEvict(key = "'id:'+#id"), @CacheEvict(key = "'id-or-md5:'+#id"), @CacheEvict(key = "'id-or-md5:'+#id") }) public FileInfoEntity deleteByPk(String id) { return super.deleteByPk(id); }
@Override @CacheEvict(cacheNames = "testCache", key = "#p0") public void evict(Object arg1, Object arg2) { }
@CacheEvict public void evict(long id) { }
@Override @Caching( evict = { @CacheEvict(key = "'id:'+#result"), @CacheEvict(key = "'all'"), @CacheEvict(key = "'count'") } ) public PK saveOrUpdate(E entity) { return super.saveOrUpdate(entity); }
@Override @Caching( evict = { @CacheEvict(key = "'id:'+#result"), @CacheEvict(key = "'all'"), @CacheEvict(key = "'count'") } ) public PK insert(E entity) { return super.insert(entity); }
@Override @Caching( evict = { @CacheEvict(key = "'id:'+#pk"), @CacheEvict(key = "'all'"), @CacheEvict(key = "'count'") } ) public int updateByPk(PK pk, E entity) { return super.updateByPk(pk, entity); }