code: @Override
      public void invalidateByTemplate(String template, boolean waitOnInvalidation) {
          final String methodName = "invalidateByTemplate()";
          if (tc.isDebugEnabled()) {
              Tr.debug(tc, methodName + " cacheName=" + cacheName + " template=" + template);
          }
          this.invalidateExternalCaches(null, template);
          this.coreCache.invalidateByTemplate(template, waitOnInvalidation);
      }
docs: This invalidates all entries in this Cache having a dependency
  on this template.
  
  @param template The template name.
  @param waitOnInvalidation True indicates that this method should
  not return until the invalidations have taken effect on all caches.
  False indicates that the invalidations will be queued for later
  batch processing.