@Override
  @SuppressWarnings("unchecked")
  public void execute(FunctionContext context) {
    Object[] arguments = (Object[]) context.getArguments();
    Cache cache = context.getCache();
    String regionName = (String) arguments[0];
    Set<String> keys = (Set<String>) arguments[1];
    if (cache.getLogger().fineEnabled()) {
      String builder = "Function " + ID + " received request to touch " + regionName + "->" + keys;
      cache.getLogger().fine(builder);
    }

    // Retrieve the appropriate Region and value to update the lastAccessedTime
    Region region = cache.getRegion(regionName);
    if (region != null) {
      region.getAll(keys);
    }

    // Return result to get around NPE in LocalResultCollectorImpl
    context.getResultSender().lastResult(true);
  }
Touches the keys contained in the set of keys by performing a get on the replicated region.
This is a non-data-aware function invoked using onMembers or onServers.
extensions/geode-modules/src/main/java/org/apache/geode/modules/util/TouchReplicatedRegionEntriesFunction.java