| java.lang.Object net.sf.ehcache.store.MemoryStoreEvictionPolicyTC
MemoryStoreEvictionPolicyTC | final public class MemoryStoreEvictionPolicyTC (Code) | | A typesafe enumeration of eviction policies. The policy used to evict elements from the
net.sf.ehcache.store.MemoryStore . This can be one of:
- LRU - least recently used
- LFU - least frequently used
- FIFO - first in first out, the oldest element by creation time
- DSO - a time based eviction policy implemented by Terracotta
The default value is LRU
author: Greg Luck version: $Id: MemoryStoreEvictionPolicyTC.java 5280 2007-08-27 18:23:11Z asi $ since: 1.2 |
fromString | public static MemoryStoreEvictionPolicyTC fromString(String policy)(Code) | | Converts a string representation of the policy into a policy.
Parameters: policy - either LRU, LFU or FIFO one of the static instances |
toString | public String toString()(Code) | | a String representation of the policy |
|
|