Permalink
Browse files

Update SynchronizedCache to work with the liveramp-commons LruHashMap

  • Loading branch information...
thomas-kielbus committed Jun 27, 2014
1 parent 5c87681 commit c61dbd7989a946bf502001bb112c46d74754de8f
Showing with 1 addition and 1 deletion.
  1. +1 −1 hank-core/src/main/java/com/liveramp/hank/util/SynchronizedCache.java
@@ -25,7 +25,7 @@
// A disabled cache will not add any synchronization overhead
public SynchronizedCache(boolean isEnabled, int cacheCapacity) {
if (isEnabled) {
- cache = new LruHashMap<K, V>(0, cacheCapacity);
+ cache = new LruHashMap<K, V>(cacheCapacity, 0);
} else {
cache = null;
}

0 comments on commit c61dbd7

Please sign in to comment.