CacheLRU
A cache implementation based on the last recently used (LRU) algorithm.
| Methods |
| static Cache |
getCache(CacheWriter writer, String cacheType, int cacheSize)
Create a cache of the given type and size.
|
| static Cache |
getCache(CacheWriter writer, String cacheType, int cacheSize)
Create a cache of the given type and size.
Parameters:
writer - the cache writer
cacheType - the cache type
cacheSize - the size
Returns:
the cache object
|
| void |
clear()
|
| void |
clear()
|
| CacheObject |
find(int pos)
|
| CacheObject |
find(int pos)
|
| CacheObject |
get(int pos)
|
| CacheObject |
get(int pos)
|
| ArrayList |
getAllChanged()
|
| ArrayList |
getAllChanged()
|
| int |
getMaxMemory()
|
| int |
getMaxMemory()
|
| int |
getMemory()
|
| int |
getMemory()
|
| void |
put(CacheObject rec)
|
| void |
put(CacheObject rec)
|
| boolean |
remove(int pos)
|
| boolean |
remove(int pos)
|
| void |
setMaxMemory(int maxKb)
|
| void |
setMaxMemory(int maxKb)
|
| CacheObject |
update(int pos, CacheObject rec)
|
| CacheObject |
update(int pos, CacheObject rec)
|
|