1. cache name: The unique name of the cache.
2. eviction:
• size: The maximum number of elements in the cache before eviction occurs. The value is a
positive integer.
• max-size-policy: The cache size policy. The possible values are ENTRY_COUNT,
USED_HEAP_SIZE, and USED_HEAP_PERCENTAGE.
• eviction-policy: The eviction policy for the cache. The possible values are LRU (Least Recently
Used), LFU (Least Frequently Used), RANDOM, and NONE.
3. expiry-policy-factory: Configures the cache's expiration policy.
• timed-expiry-policy-factory: A factory for creating a timed expiry policy.
• expiry-policy-type: The type of expiry policy. Possible values are CREATED, ACCESSED,
MODIFIED, and TOUCHED. CREATED expires based on the creation time, ACCESSED
expires based on the last access time, MODIFIED expires based on the last modification time,
and TOUCHED expires based on the last access or modification time.
• duration-amount: The duration amount for the expiry policy. The value is a positive integer.
• time-unit: The time unit for the duration amount. Possible values are NANOSECONDS,
MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, and DAYS.