code: @SuppressWarnings("unchecked")
     @CacheEntryModified
     public void cacheEntryModified(CacheEntryModifiedEvent<Serializable, Object> event)
     {
        if (!event.isPre() && event.getKey().equals(namesKey))
        {
           Set<String> set = (Set<String>)event.getValue();
           if (set != null)
           {
              refreshIndexes(set);
           }
        }
     }
docs: Method will be invoked when a cache entry has been modified only in READ_ONLY mode.
  
  @param event
  CacheEntryModifiedEvent