code: static void publishCacheWideEvent(InternalQueryCache queryCache,
                                        int numberOfEntriesAffected,
                                        EntryEventType eventType) {
          if (!hasListener(queryCache)) {
              return;
          }
  
          DefaultQueryCache defaultQueryCache = (DefaultQueryCache) queryCache;
          QueryCacheContext context = defaultQueryCache.context;
          String mapName = defaultQueryCache.mapName;
          String cacheId = defaultQueryCache.cacheId;
  
          QueryCacheEventService eventService = getQueryCacheEventService(context);
  
          LocalCacheWideEventData eventData
                  = new LocalCacheWideEventData(cacheId, eventType.getType(), numberOfEntriesAffected);
  
          eventService.publish(mapName, cacheId, eventData, cacheId.hashCode(), queryCache.getExtractors());
      }
docs: As a result of map-wide events like {@link EntryEventType#CLEAR_ALL} or {@link EntryEventType#EVICT_ALL}
  we also publish a matching event for query-cache listeners.