public static EvictionAttributes createLRUMemoryAttributes(ObjectSizer sizer) {
    return new EvictionAttributesImpl().setAlgorithm(EvictionAlgorithm.LRU_MEMORY)
        .setAction(EvictionAction.DEFAULT_EVICTION_ACTION).setObjectSizer(sizer)
        .setMaximum(DEFAULT_MEMORY_MAXIMUM);
  }
Creates and returns {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes
with default {@linkplain EvictionAction#DEFAULT_EVICTION_ACTION action}, 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.
@return {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes with default
        {@linkplain EvictionAction#DEFAULT_EVICTION_ACTION action}, 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