public static EvictionAttributes createLRUMemoryAttributes() {
    return new EvictionAttributesImpl().setAlgorithm(EvictionAlgorithm.LRU_MEMORY)
        .setAction(EvictionAction.DEFAULT_EVICTION_ACTION).setMaximum(DEFAULT_MEMORY_MAXIMUM)
        .setObjectSizer(ObjectSizer.DEFAULT);
  }
Creates and returns {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes
with default {@linkplain EvictionAction#DEFAULT_EVICTION_ACTION action}, default
{@linkplain ObjectSizer#DEFAULT sizer}, and default {@linkplain #DEFAULT_MEMORY_MAXIMUM
maximum}.
<p>
Creates EvictionAttributes for an eviction controller that will remove the least recently used
(LRU) entry from a region once the region reaches a certain byte capacity. Capacity is
determined by monitoring the size of entries added and evicted. Capacity is specified in terms
of megabytes. GemFire uses an efficient algorithm to determine the amount of space a region
entry occupies in the JVM. However, this algorithm may not yield optimal results for all kinds
of data. The user may provide their own algorithm for determining the size of objects by
implementing an {@link ObjectSizer}.
<p>
For a region with {@link DataPolicy#PARTITION}, the EvictionAttribute <code>maximum</code>, is
always equal to {@link PartitionAttributesFactory#setLocalMaxMemory(int) " local max memory "}
specified for the {@link PartitionAttributes}. It signifies the amount of memory allowed in the
region, collectively for its primary buckets and redundant copies for this JVM. It can be
different for the same region in different JVMs.
<p>
If you are using a <code>cache.xml</code> file to create a Cache Region declaratively, you can
include the following to create an LRU memory eviction controller:

<pre>
         &lt;region-attributes&gt;
           &lt;eviction-attributes&gt;
              &lt;lru-memory-size maximum=&quot;10&quot; action=&quot;local-destroy&quot;&gt;
                 &lt;class-name&gt;com.foo.MySizer&lt;/class-name&gt;
                 &lt;parameter name=&quot;name&quot;&gt;
                    &lt;string&gt;Super Sizer&lt;/string&gt;
                 &lt;/parameter&gt;
              &lt;/lru-memory-size&gt;
           &lt;/eviction-attributes&gt;
        &lt;/region-attributes&gt;
</pre>

@return {@linkplain EvictionAlgorithm#LRU_MEMORY memory LRU} eviction attributes with default
        {@linkplain EvictionAction#DEFAULT_EVICTION_ACTION action}, default
        {@linkplain ObjectSizer#DEFAULT sizer}, and default {@linkplain #DEFAULT_MEMORY_MAXIMUM
        maximum}
geode-core/src/main/java/org/apache/geode/cache/EvictionAttributes.java