W3cubDocs

/Groovy 3.0

[Java] Enum EvictableCache.EvictionStrategy

  • org.codehaus.groovy.runtime.memoize.EvictableCache.EvictionStrategy
public enum EvictableCache.EvictionStrategy

Represents a eviction strategy for the cache with limited size

Enum Constants Summary

Enum constants classes
Enum constant Description
FIFO Entries are evicted in the same order as they come in
LRU The oldest entry(i.e. the Less Recently Used entry) will be evicted

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class Object wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Enum Constant Detail

public EvictableCache.EvictionStrategy FIFO

Entries are evicted in the same order as they come in

public EvictableCache.EvictionStrategy LRU

The oldest entry(i.e. the Less Recently Used entry) will be evicted

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/runtime/memoize/EvictableCache.EvictionStrategy.html