code: public void evictAll(EntityType entityType) {
      cache
          .asMap()
          .keySet()
          .stream()
          .filter(e -> e.getEntityTypeId().equals(entityType.getId()))
          .forEach(cache::invalidate);
    }
docs: Evicts all entries from the cache that belong to a certain entityType.
  
  @param entityType the id of the entity whose entries are to be evicted