提交 fad2f2ca 编写于 作者: C Costin Leau

SPR-8006

SPR-8023
- remove unneeded method
上级 523a83ca
...@@ -63,12 +63,6 @@ public class EhCacheCache implements Cache<Object, Object> { ...@@ -63,12 +63,6 @@ public class EhCacheCache implements Cache<Object, Object> {
return (element != null ? true : false); return (element != null ? true : false);
} }
public boolean containsValue(Object value) {
// force expiry check to guarantee a valid result (otherwise expired elements are considered)
cache.evictExpiredElements();
return cache.isValueInCache(value);
}
public Object get(Object key) { public Object get(Object key) {
Element element = cache.get(key); Element element = cache.get(key);
return (element != null ? element.getObjectValue() : null); return (element != null ? element.getObjectValue() : null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册