이 콘텐츠는 선택한 언어로 제공되지 않습니다.
15.4. Eviction Strategies
15.4.1. About Eviction Strategies 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
Each eviction strategy has specific benefits and use cases, as outlined below:
Strategy Name | Operations | Use Cases |
---|---|---|
EvictionStrategy.NONE | No eviction occurs. | - |
EvictionStrategy.LRU | Least Recently Used eviction strategy. This strategy evicts entries that have not been used for the longest period. This ensures that entries that are reused periodically remain in memory. | LRU is JBoss Data Grid's default eviction algorithm because it suits a large variety of production use cases. |
EvictionStrategy.UNORDERED | Unordered eviction strategy. This strategy evicts entries without any ordered algorithm and may therefore evict entries that are required later. However, this entry saves resources because no algorithm related calculations are required before eviction. | This strategy is recommended for testing purposes and not for a real work implementation. |
EvictionStrategy.LIRS | Low Inter-reference Recency Set eviction strategy. | - |