code: public void cacheCommand_Clear(boolean waitOnInvalidation, DCache cache) {
          String template = cache.getCacheName();
          synchronized (this) {
              BatchUpdateList bul = getUpdateList(cache);
              bul.invalidateByIdEvents.clear();
              bul.invalidateByTemplateEvents.clear();
              bul.pushCacheEntryEvents.clear();
              bul.pushECFEvents.clear();
              InvalidateByTemplateEvent invalidateByTemplateEvent = new InvalidateByTemplateEvent(template, CachePerf.LOCAL);
              invalidateByTemplateEvent.setCacheCommand_Clear();
              bul.invalidateByTemplateEvents.put(template, invalidateByTemplateEvent);
          }
          if (waitOnInvalidation) {
              wakeUp(0, 0);
          }
      }
docs: This will send a "CLEAR" command to all caches.