diff --git a/redisson/src/main/java/org/redisson/misc/LRUCacheMap.java b/redisson/src/main/java/org/redisson/misc/LRUCacheMap.java index f526837ca..112190b6c 100644 --- a/redisson/src/main/java/org/redisson/misc/LRUCacheMap.java +++ b/redisson/src/main/java/org/redisson/misc/LRUCacheMap.java @@ -41,18 +41,14 @@ public class LRUCacheMap extends AbstractCacheMap { @Override protected void onValueRemove(CachedValue value) { - synchronized (value) { - queue.remove(value); - } + queue.remove(value); } @Override protected void onValueRead(CachedValue value) { // move value to tail of queue - synchronized (value) { - if (queue.remove(value)) { - queue.add(value); - } + if (queue.remove(value)) { + queue.add(value); } }