geode-for-redis/src/main/java/org/apache/geode/redis/internal/data/RedisSet.java
public long sadd(List<byte[]> membersToAdd, Region<RedisKey, RedisData> region, RedisKey key) {
    AddByteArrays delta = new AddByteArrays();
    int membersAdded = 0;
    for (byte[] member : membersToAdd) {
      if (membersAdd(member)) {
        delta.add(member);
        membersAdded++;
      }
    }
    if (membersAdded == 0) {
      return 0;
    }
    storeChanges(region, key, delta);
    return membersAdded;
  }
/**
   * @param membersToAdd members to add to this set
   * @param region the region this instance is stored in
   * @param key the name of the set to add to
   * @return the number of members actually added
   */
@param membersToAdd members to add to this set
@param region the region this instance is stored in
@param key the name of the set to add to
@return the number of members actually added
@param membersToAdd members to add to this set @param region the region this instance is stored in @param key the name of the set to add to @return the number of members actually added
public long sadd(List<byte[]> membersToAdd, Region<RedisKey, RedisData> region, RedisKey key) {
    AddByteArrays delta = new AddByteArrays();
    int membersAdded = 0;
    for (byte[] member : membersToAdd) {
      if (membersAdd(member)) {
        delta.add(member);
        membersAdded++;
      }
    }
    if (membersAdded == 0) {
      return 0;
    }
    storeChanges(region, key, delta);
    return membersAdded;
  }
public long sadd ( List < byte [ ] > membersToAdd , Region < RedisKey , RedisData > region , RedisKey key ) { AddByteArrays delta = new AddByteArrays ( ) ; int membersAdded = 0 ; for ( byte [ ] member : membersToAdd ) { if ( membersAdd ( member ) ) { delta . add ( member ) ; membersAdded ++ ; } } if ( membersAdded == 0 ) { return 0 ; } storeChanges ( region , key , delta ) ; return membersAdded ; }
@param membersToAdd members to add to this set
 @param region the region this instance is stored in
 @param key the name of the set to add to
 @return the number of members actually added
@param membersToAdd members to add to this set @param region the region this instance is stored in @param key the name of the set to add to @return the number of members actually added