12.5.2. Default Eviction Configuration

In JBoss Data Grid, eviction is disabled by default. If an empty eviction element is used to enable eviction, the following default values are used:
  • Strategy: If no eviction strategy is specified, EvictionStrategy.NONE is assumed as a default.
  • max-entries: If no value is specified, the max-entries value is set to -1, which allows unlimited entries.
    • Set the max-entries value to 0 to disallow any entries. As a result, the eviction thread strives to keep the cache empty.