KEY
- keyVALUE
- valuepublic class FastConcurrentReadLruLfuFifoCache<KEY,VALUE> extends Object implements Cache<KEY,VALUE>
Constructor and Description |
---|
FastConcurrentReadLruLfuFifoCache(int evictSize)
New cache LFU is the default.
|
FastConcurrentReadLruLfuFifoCache(int evictSize,
Tradeoffs tradeoffs,
CacheType type)
New cache
|
Modifier and Type | Method and Description |
---|---|
VALUE |
get(KEY key)
Get the value from the cache.
|
VALUE |
getSilent(KEY key)
Used for testing as it gets the value without updating stats
|
void |
put(KEY key,
VALUE value)
Put the value.
|
void |
remove(KEY key)
Remove the key.
|
int |
size()
How many items do we have in the cache?
|
String |
toString() |
public FastConcurrentReadLruLfuFifoCache(int evictSize)
evictSize
- public VALUE get(KEY key)
public VALUE getSilent(KEY key)
public void remove(KEY key)
public void put(KEY key, VALUE value)
Copyright © 2014. All rights reserved.