Turning cache fairness off.
This commit is contained in:
parent
9883a98aa0
commit
7311327d8d
@ -9,7 +9,7 @@ public class Cache<K, V> {
|
||||
private final int maxSize;
|
||||
private final ConcurrentHashMap<K, CacheValue<K, V>> data;
|
||||
private final UsageStack<K, V> usage = new UsageStack<>();
|
||||
private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true);
|
||||
private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
|
||||
private final WriteLock writeLock = lock.writeLock();
|
||||
private final ReadLock readLock = lock.readLock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user