code: public String ping() {
          return this.execute(new RedisClusterCallback<String>() {
              public String doInRedisCluster(RedisCluster redisCluster) {
                  return redisCluster.ping();
              }
  
              public int getPartitionNumber() {
                  return GatewayPartitionNumber.NOT_MATCHED;
              }
  
              public AffinityState getState() {
                  return AffinityState.READ;
              }
          });
      }
docs: /*
  @see RedisClusterCommands#ping()