public static EvictionAttributes createLRUMemoryAttributes(ObjectSizer sizer,
      EvictionAction evictionAction) {
    return new EvictionAttributesImpl().setAlgorithm(EvictionAlgorithm.LRU_MEMORY)
        .setAction(evictionAction).setObjectSizer(sizer).setMaximum(DEFAULT_MEMORY_MAXIMUM);
  }
Creates and returns {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes
with given <code>evictionAction</code>, given <code>sizer</code>, and default
{@linkplain #DEFAULT_MEMORY_MAXIMUM maximum}.
<p>
For a region with {@link DataPolicy#PARTITION}, even if maximumMegabytes are supplied, the
EvictionAttribute <code>maximum</code>, is always set to
{@link PartitionAttributesFactory#setLocalMaxMemory(int) " local max memory "} specified for
the {@link PartitionAttributes}.

@param sizer calculates the size in bytes of the key and value for an entry.
@param evictionAction the action to take when the maximum has been reached.
@return {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes with given
        <code>evictionAction</code>, given <code>sizer</code>, and default
        {@linkplain #DEFAULT_MEMORY_MAXIMUM maximum}
@see #createLRUMemoryAttributes()
@since GemFire 6.0
geode-core/src/main/java/org/apache/geode/cache/EvictionAttributes.java