code: public EvictionConfigurationBuilder type(EvictionType type) {
        attributes.attribute(TYPE).set(type);
        memory().evictionType(type);
        return this;
     }
docs: Sets the eviction type which can either be
  <ul>
  <li>COUNT - entries will be evicted when the number of entries exceeds the {@link #size(long)}</li>
  <li>MEMORY - entries will be evicted when the approximate combined size of all values exceeds the {@link #size(long)}</li>
  </ul>
  
  Cache size is guaranteed not to exceed upper
  limit specified by max entries. However, due to the nature of eviction it is unlikely to ever
  be exactly maximum number of entries specified here.
  
  @param type