File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
dubbo-filter/dubbo-filter-cache/src/main/java/com/alibaba/dubbo/cache/support/lru Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 19
19
import com .alibaba .dubbo .common .URL ;
20
20
import com .alibaba .dubbo .common .utils .LRUCache ;
21
21
22
- import java .util .LinkedHashMap ;
23
22
import java .util .Map ;
24
- import java .util .Map .Entry ;
25
23
26
24
/**
27
25
* LruCache
@@ -34,19 +32,15 @@ public class LruCache implements Cache {
34
32
35
33
public LruCache (URL url ) {
36
34
final int max = url .getParameter ("cache.size" , 1000 );
37
- this .store = new LRUCache <Object ,Object >(max );
35
+ this .store = new LRUCache <Object , Object >(max );
38
36
}
39
37
40
38
public void put (Object key , Object value ) {
41
- synchronized (store ) {
42
- store .put (key , value );
43
- }
39
+ store .put (key , value );
44
40
}
45
41
46
42
public Object get (Object key ) {
47
- synchronized (store ) {
48
- return store .get (key );
49
- }
43
+ return store .get (key );
50
44
}
51
45
52
46
}
You can’t perform that action at this time.
0 commit comments