public static EvictionAttributes createLRUMemoryAttributes(int maximumMegabytes,
      ObjectSizer sizer, EvictionAction evictionAction) {
    return new EvictionAttributesImpl().setAlgorithm(EvictionAlgorithm.LRU_MEMORY)
        .setAction(evictionAction).setMaximum(maximumMegabytes).setObjectSizer(sizer);
  }
Creates and returns {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes
with the given <code>evictionAction</code>, given <code>sizer</code>, and given
<code>maximumMegabytes</code>.
<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 maximumMegabytes the maximum allowed bytes in the Region
@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 the given
        <code>evictionAction</code>, given <code>sizer</code>, and given
        <code>maximumMegabytes</code>
@see #createLRUMemoryAttributes()
geode-core/src/main/java/org/apache/geode/cache/EvictionAttributes.java