@Override public Object invoke(Object... args) { Cache secondLevelCache = getEntityManagerFactory(args).getCache(); if (secondLevelCache != null) { secondLevelCache.evictAll(); } return null; }
public void invalidar() { cache.evict(Conta.class, id); }