private void updateEntries(Cache<Integer,Integer> cache,int newVal,boolean invoke,Set<Integer> keys){
  if (invoke)   cache.invokeAll(keys,new IntegerSetValue(newVal));
 else {
    final Map<Integer,Integer> entries=new HashMap<>(ENTRY_COUNT);
    for (    final Integer key : keys)     entries.put(key,newVal);
    cache.putAll(entries);
  }
}

private void updateEntries ( Cache < Integer , Integer > cache , int newVal , boolean invoke , Set < Integer > keys ) { if ( invoke ) cache . invokeAll ( keys , new IntegerSetValue ( newVal ) ) ; else { final Map < Integer , Integer > entries = new HashMap < > ( ENTRY_COUNT ) ; for ( final Integer key : keys ) entries . put ( key , newVal ) ; cache . putAll ( entries ) ; } }
update the cache using either invokeall ( ) or putall ( ) .
