use of org.molgenis.data.RepositoryCapability.CACHEABLE in project molgenis by molgenis.
the class L1CacheRepositoryDecorator method deleteAll.
@Override
public void deleteAll(Stream<Object> ids) {
evictBiDiReferencedEntityTypes();
if (cacheable) {
EntityType entityType = getEntityType();
ids = ids.peek(id -> l1Cache.putDeletion(EntityKey.create(entityType, id)));
}
delegate().deleteAll(ids);
}
Aggregations