From ddf3c7a4fceeae453daa801ae919efb22ddbadfe Mon Sep 17 00:00:00 2001 From: johnniang Date: Thu, 28 Mar 2019 21:42:00 +0800 Subject: [PATCH] Remove useless synchronized key work --- src/main/java/cc/ryanc/halo/cache/InMemoryCacheStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/ryanc/halo/cache/InMemoryCacheStore.java b/src/main/java/cc/ryanc/halo/cache/InMemoryCacheStore.java index bc40bb1a2..5f5019d9a 100644 --- a/src/main/java/cc/ryanc/halo/cache/InMemoryCacheStore.java +++ b/src/main/java/cc/ryanc/halo/cache/InMemoryCacheStore.java @@ -27,7 +27,7 @@ public class InMemoryCacheStore extends StringCacheStore { } @Override - synchronized void putInternal(String key, CacheWrapper cacheWrapper) { + void putInternal(String key, CacheWrapper cacheWrapper) { Assert.hasText(key, "Cache key must not be blank"); Assert.notNull(cacheWrapper, "Cache wrapper must not be null"); @@ -61,7 +61,7 @@ public class InMemoryCacheStore extends StringCacheStore { } @Override - public synchronized void delete(String key) { + public void delete(String key) { Assert.hasText(key, "Cache key must not be blank"); cacheContainer.remove(key);