} else {
keysData = null;
}
final int partitionCount = clientContext.getPartitionService().getPartitionCount();
final Integer completionId = registerCompletionLatch(partitionCount);
CacheClearRequest request = new CacheClearRequest(nameWithPrefix, keysData, isRemoveAll, completionId);
try {
final Map<Integer, Object> results = invoke(request);
int completionCount = 0;
for (Object result : results.values()) {
if (result != null && result instanceof CacheClearResponse) {