SPR-8023
- remove unneeded method
This commit is contained in:
Costin Leau 2011-03-06 11:43:25 +00:00
parent 523a83ca28
commit fad2f2ca30
1 changed files with 0 additions and 6 deletions

View File

@ -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);