## Uses of Interface
org.apache.ignite.cache.eviction.EvictionPolicy

- Packages that use EvictionPolicy
  Package | Description
  --- | ---
  org.apache.ignite.cache.eviction | Contains cache eviction policy implementations.
  org.apache.ignite.cache.eviction.fifo | Contains cache FIFO eviction policy implementations.
  org.apache.ignite.cache.eviction.lru | Contains cache LRU eviction policy implementations.
  org.apache.ignite.cache.eviction.sorted | Contains cache sorted eviction policy implementation.
  org.apache.ignite.configuration | Contains configuration-related classes.

- - ### Uses of EvictionPolicy in org.apache.ignite.cache.eviction

    Classes in org.apache.ignite.cache.eviction that implement EvictionPolicy
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `AbstractEvictionPolicy<K,​V>` | Common functionality implementation for eviction policies with max size/max memory and batch eviction support.

  - ### Uses of EvictionPolicy in org.apache.ignite.cache.eviction.fifo

    Classes in org.apache.ignite.cache.eviction.fifo that implement EvictionPolicy
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `FifoEvictionPolicy<K,​V>` | Eviction policy based on `First In First Out (FIFO)` algorithm and supports batch eviction.

  - ### Uses of EvictionPolicy in org.apache.ignite.cache.eviction.lru

    Classes in org.apache.ignite.cache.eviction.lru that implement EvictionPolicy
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `LruEvictionPolicy<K,​V>` | Eviction policy based on `Least Recently Used (LRU)` algorithm and supports batch eviction.

  - ### Uses of EvictionPolicy in org.apache.ignite.cache.eviction.sorted

    Classes in org.apache.ignite.cache.eviction.sorted that implement EvictionPolicy
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `SortedEvictionPolicy<K,​V>` | Cache eviction policy which will select the minimum cache entry for eviction.

  - ### Uses of EvictionPolicy in org.apache.ignite.configuration

    Methods in org.apache.ignite.configuration that return EvictionPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `@Nullable EvictionPolicy<K,​V>` | CacheConfiguration.`getEvictionPolicy()` | Deprecated. Use `CacheConfiguration.getEvictionPolicyFactory()` instead.
    `EvictionPolicy<K,​V>` | NearCacheConfiguration.`getNearEvictionPolicy()` | Deprecated. Use `NearCacheConfiguration.getNearEvictionPolicyFactory()` instead.

    Methods in org.apache.ignite.configuration that return types with arguments of type EvictionPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `@Nullable javax.cache.configuration.Factory<EvictionPolicy<? super K,​? super V>>` | CacheConfiguration.`getEvictionPolicyFactory()` | Gets cache eviction policy factory.
    `@Nullable javax.cache.configuration.Factory<EvictionPolicy<? super K,​? super V>>` | NearCacheConfiguration.`getNearEvictionPolicyFactory()` | Gets cache eviction policy factory.

    Methods in org.apache.ignite.configuration with parameters of type EvictionPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `CacheConfiguration<K,​V>` | CacheConfiguration.`setEvictionPolicy​(@Nullable EvictionPolicy evictPlc)` | Deprecated. Use `CacheConfiguration.setEvictionPolicyFactory(Factory)` instead.
    `NearCacheConfiguration<K,​V>` | NearCacheConfiguration.`setNearEvictionPolicy​(EvictionPolicy<K,​V> nearEvictPlc)` | Deprecated. Use `NearCacheConfiguration.setNearEvictionPolicyFactory(Factory)` instead.

    Method parameters in org.apache.ignite.configuration with type arguments of type EvictionPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `CacheConfiguration<K,​V>` | CacheConfiguration.`setEvictionPolicyFactory​(@Nullable javax.cache.configuration.Factory<? extends EvictionPolicy<? super K,​? super V>> evictPlcFactory)` | Sets cache eviction policy factory.
    `NearCacheConfiguration<K,​V>` | NearCacheConfiguration.`setNearEvictionPolicyFactory​(@Nullable javax.cache.configuration.Factory<? extends EvictionPolicy<? super K,​? super V>> nearEvictPlcFactory)` | Sets cache eviction policy factory.