name: The unique name of the cache.
• maxElementsInMemory: The maximum number of elements that can be stored in memory. Once this
limit is reached, elements can be evicted or overflow to disk, depending on the configuration. The
value is a positive integer.
• eternal: A boolean value that indicates whether the elements in the cache should never expire. If set
to true, the timeToIdleSeconds and timeToLiveSeconds attributes are ignored. The value is either true
or false.
• timeToIdleSeconds: The maximum number of seconds an element can be idle (not accessed) before
it expires. A value of 0 means there's no limit on the idle time. The value is a non-negative integer.
• timeToLiveSeconds: The maximum number of seconds an element can exist in the cache,
regardless of idle time. A value of 0 means there's no limit on the element's lifespan. The value is a
non-negative integer.
• overflowToDisk: A boolean value that indicates whether elements can be moved from memory to
disk when the maxElementsInMemory limit is reached. This attribute is deprecated in EHCache 2.10
and removed in EHCache 3.x. Instead, you should use the diskPersistent attribute or configure a
disk store element. The value is either true or false.