code: private void customizeEviction(ConfigurationBuilder builder)
      {
          EntryEvictionConfiguration eec =
              (EntryEvictionConfiguration) getCacheConfiguration().get(EntryEvictionConfiguration.CONFIGURATIONID);
  
          if (eec != null && eec.getAlgorithm() == EntryEvictionConfiguration.Algorithm.LRU) {
              ////////////////////
              // Eviction
              // Max entries
              customizeEvictionMaxEntries(builder, eec);
  
              ////////////////////
              // Expiration
              // Wakeup interval
              customizeExpirationWakeUpInterval(builder, eec);
  
              // Max idle
              customizeExpirationMaxIdle(builder, eec);
  
              // Lifespan
              customizeExpirationLifespan(builder, eec);
          }
      }
docs: Customize the eviction configuration.
  
  @param buil the configuration builder
  @param configuration the configuration
  @return the configuration builder