// filteredKeys will get filled with removed keys
cache.removeAll(filteredKeys);
} else if (!filteredKeys.isEmpty()) {
cache.removeAll(filteredKeys);
}
response = new CacheClearResponse(Boolean.TRUE);
int orderKey = keys != null ? keys.hashCode() : 1;
cache.publishCompletedEvent(name, completionId, new DefaultData(), orderKey);
} catch (CacheException e) {
response = new CacheClearResponse(e);
}
}