Fix computeIf condition!!!!
This commit is contained in:
parent
7b7d6b36a8
commit
63fd9d77af
|
@ -65,7 +65,7 @@ public class Cache {
|
|||
Element element = null;
|
||||
try {
|
||||
element = cache.get(key);
|
||||
if (condition.test(element)) {
|
||||
if (!condition.test(element)) {
|
||||
return getElementValue(element);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue