K - V - public class SimpleConcurrentCache<K,V> extends Object implements Cache<K,V>
| Constructor and Description |
|---|
SimpleConcurrentCache(int limit)
New
|
SimpleConcurrentCache(int limit,
boolean fair,
CacheType type)
Limit of hte cache size
|
SimpleConcurrentCache(int limit,
CacheType type)
New
|
SimpleConcurrentCache(int concurrency,
int limit,
boolean fair)
The more stripes the less accurate the LRU but the faster the access.
|
SimpleConcurrentCache(int concurrency,
int limit,
boolean fair,
CacheType type)
The more stripes the less accurate the LRU but the faster the access.
|
public SimpleConcurrentCache(int limit)
limit - limit of the cache sizepublic SimpleConcurrentCache(int limit,
CacheType type)
limit - limit of the cache sizetype - type of cachepublic SimpleConcurrentCache(int limit,
boolean fair,
CacheType type)
limit - limit of the cache sizefair - should we be fair?type - type of cachepublic SimpleConcurrentCache(int concurrency,
int limit,
boolean fair,
CacheType type)
concurrency - how many stripeslimit - limit of the cache sizefair - should we be fair?type - type of cachepublic SimpleConcurrentCache(int concurrency,
int limit,
boolean fair)
concurrency - how many stripeslimit - limit of the cache sizefair - should we be fair?public void remove(K key)
public int size()
Copyright © 2014. All rights reserved.