code: public void onInvalidate(String template, int cause, int locality, int source) {
          final String methodName = "onInvalidate()";
          if (tc.isDebugEnabled())
              Tr.debug(tc, methodName + " cacheName=" + _sCacheName + " template=" + template + " cause=" + cause + " locality=" + locality
                      + " source=" + source);
          batchOnInvalidate(template, cause, locality, source, 1);
          return;
      }
docs: /*
  Updates statistics for all types of invalidations - timeout, LRU, explicit invalidations
  
  @param template the template of the cache entry. The template cannot be null for Servlet cache.
  
  @param cause the cause of invalidation
  
  @param locality whether the invalidation occurred on disk, in memory, or neither
  
  @param source whether the invalidation was generated internally or remotely
  
  @param dels number of invalidations that occurred