Remove useless synchronized key work

pull/137/head
johnniang 2019-03-28 21:42:00 +08:00
parent 11f28f11da
commit ddf3c7a4fc
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public class InMemoryCacheStore extends StringCacheStore {
}
@Override
synchronized void putInternal(String key, CacheWrapper<String> cacheWrapper) {
void putInternal(String key, CacheWrapper<String> 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);