Constructor and Description |
---|
ConcurrentLruCache(int limit)
Creates an LRU Cache with a given limit.
|
Modifier and Type | Method and Description |
---|---|
VALUE |
get(KEY key)
Get the value at key
|
VALUE |
getSilent(KEY key)
Get the key without updating the LRU status for testing
|
void |
put(KEY key,
VALUE value)
Key
|
void |
remove(KEY key)
Remove the key.
|
int |
size()
Size of the cache.
|
String |
toString() |
public ConcurrentLruCache(int limit)
public void remove(KEY key)
public int size()
Copyright © 2014. All rights reserved.