com.easyjf.cache.store
Class StorePolicy

java.lang.Object
  extended bycom.easyjf.cache.store.StorePolicy

public final class StorePolicy
extends java.lang.Object

缓存存储算法策略

Author:
蔡世友

Field Summary
static int FIFO
          FIFO - 先进先出算法
static int LFU
          LFU - least frequently used
static int LRU
          LRU - least recently used
 
Constructor Summary
StorePolicy()
           
 
Method Summary
static int get(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LRU

public static final int LRU
LRU - least recently used

See Also:
Constant Field Values

LFU

public static final int LFU
LFU - least frequently used

See Also:
Constant Field Values

FIFO

public static final int FIFO
FIFO - 先进先出算法

See Also:
Constant Field Values
Constructor Detail

StorePolicy

public StorePolicy()
Method Detail

get

public static int get(java.lang.String name)