判断 member 元素是否集合 key 的成员。
975125
public boolean sismember(Object key, Object member) {
		Jedis jedis = getJedis();
		try {
			return jedis.sismember(keyToBytes(key), valueToBytes(member));
		}
		finally {close(jedis);}
	}
553484
def get(key, default=-1):
        """"""
        if isinstance(key, int):
            return Frame(key)
        if key not in Frame._member_map_:
            extend_enum(Frame, key, default)
        return Frame[key]
1070633
def modify_member(row, key, value):
    '''  '''
    (target, tkey, tvalue) = dict_crawl(row, key)
    if target:
        target[tkey] = value
    return row
1092046
public function member($key)
    {
        foreach ($this->value as $innerKey => $value) {
            if ($key === $innerKey) {
                return true;
            }
        }

        return false;
    }
1267000
def frommembers(cls, members=()):
        """"""
        return cls.fromint(sum(map(cls._map.__getitem__, set(members))))
944896
function addSetMember (key, member, res, next) {
  let redisConnection = res.locals.connection;
  myutil.decodeHTMLEntities(member, function (decodedString) {
    return redisConnection.sadd(key, decodedString, function (err) {
        if (err) {
            console.error('addSetMember', err);
            return next(err);
        }
        res.send('ok');
    });
  });
}
781043
function srandmember(count) {
  var list = []
    , rand
    , members = this._keys
    , len = this._keys.length;

  if(count === 0) return list;

  // no count, bulk string reply
  if(count === undefined) {
    return this.getRandomKey();
  // positive count
  }else if(count > 0) {
    count = Math.min(count, len);
    while(list.length < count) {
      rand = this.getRandomKey();
      /* istanbul ignore next: random, sometimes yes, sometimes no */
      if(!~ArrayIndex.indexOf(rand, list)) {
        list.push(rand);
      }
    }
  // negative value, duplicates are ok
  }else{
    count = Math.abs(count);
    while(list.length < count) {
      rand = this.getRandomKey();
      list.push(rand);
    }
  }
  return list;
}
536506
function sinter(/* key-1, key-N, req*/) {
  var args = slice.call(arguments, 0)
    , req = typeof args[args.length-1] === 'object' ? args.pop() : null
    , set = new Set()
    , list
    , src
    , i;

  for(i = 0;i < args.length;i++) {
    src = this.getKey(args[i], req);
    if(src === undefined) return [];
    set.sadd(src.data);
  }

  list = set.data.slice(0);

  function filter(member) {
    for(i = 0;i < args.length;i++) {
      src = this.getKey(args[i]);
      if(!src.sismember(member)) return false;
    }
    return true;
  }

  list = list.filter(filter.bind(this));

  return list;
}
873978
function srem(members) {
  var i
    , c = 0;
  for(i = 0;i < members.length;i++) {
    if(this.keyExists(members[i])) {
      this.delKey(members[i]);
      c++;
    }
  }
  return c;
}
1201014
private Entry getEntry(Object key)
    {
        if (key == null) return null;
        int hash = hashCode(key);
        int index = indexFor(hash);
        for (Entry entry = table[index]; entry != null; entry = entry.next)
        {
            if ((entry.hash == hash) && equals(key, entry.getKey()))
            {
                return entry;
            }
        }
        return null;
    }
931014
def _join(lst, key, sep=";"):
    
    return sep.join([d[key] for d in lst if d[key]])
1351062
def get(key, default=-1):
        """"""
        if isinstance(key, int):
            return Setting(key)
        if key not in Setting._member_map_:
            extend_enum(Setting, key, default)
        return Setting[key]
726127
function sadd(members) {
  var i
    , c = 0;
  for(i = 0;i < members.length;i++) {
    if(!this._data[members[i]]) {
      this.setKey(members[i], 1);
      c++;
    }
  }
  return c;
}
566978
public boolean containsKey(Object key) {
        Object k = maskNull(key);
        Object[] tab = table;
        int len = tab.length;
        int i = hash(k, len);
        while (true) {
            Object item = tab[i];
            if (item == k)
                return true;
            if (item == null)
                return false;
            i = nextKeyIndex(i, len);
        }
    }
9413
function get(key){ 
    var type = this.getType(key);
    var ret  = this[type][key];

    //对于node集合，如果是string，则设置node
    if (type === 'nodes' && util.isString(ret)) {
      ret = this._setNode(key);
    } 

    return ret;
  }
1299248
function (keyOrList, func) {
				var keys = toArray(keyOrList), i = -1, len = keys.length, key;
				while (++i < len) {
					key = keys[i];
					func(key, me.get(key));
				}
				return me;
			}
1129820
def get(key, default=-1):
        """"""
        if isinstance(key, int):
            return Operation(key)
        if key not in Operation._member_map_:
            extend_enum(Operation, key, default)
        return Operation[key]