net.sf.ehcache.store
public final class MemoryStoreEvictionPolicy extends Object
Since: 1.2
Version: $Id: MemoryStoreEvictionPolicy.java 52 2006-04-24 14:50:03Z gregluck $
Field Summary | |
---|---|
static MemoryStoreEvictionPolicy | FIFO
FIFO - first in first out, the oldest element by creation time. |
static MemoryStoreEvictionPolicy | LFU
LFU - least frequently used. |
static MemoryStoreEvictionPolicy | LRU
LRU - least recently used. |
Method Summary | |
---|---|
static MemoryStoreEvictionPolicy | fromString(String policy)
Converts a string representation of the policy into a policy.
|
String | toString() |
Parameters: policy either LRU, LFU or FIFO
Returns: one of the static instances
Returns: a String representation of the policy