Check that member is a member of the set
@param string $key key
@param mixed $member member
@return bool check result
@throws ConnectException exception on connection to redis instance
17078
public function sismembers($key, $member) {
        try {
            return $this->getRedis()->sIsMember($key, $member);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
494554
public function hasStaticMember($member)
    {
        if (is_string($this->$member)) {
            $tokens = token_get_all('<?php '.$this->$member);

            return
                count($tokens) === 2 &&
                is_array($tokens[1]) &&
                in_array($tokens[1][0], [T_CONSTANT_ENCAPSED_STRING, T_DNUMBER, T_LNUMBER]);
        }

        return false;
    }
20704
public function canEdit($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        $result = $this->extendedCan('canEdit', $member);
        if ($result !== null) {
            return $result;
        }

        if (Permission::checkMember($member, self::EDIT_ALL)) {
            return true;
        }

        // Check inherited permissions
        return static::getPermissionChecker()
            ->canEdit($this->ID, $member);
    }
669610
public function sIsMember($key, $member) {
        return $this->send(['sismember', $key, $member], function ($response) {
            return (bool) $response;
        });
    }
739596
protected function parseKey(&$key, &$member, $allowNoMember = false)
    {
        if(!is_string($key))
        {
            throw new InvalidArgumentException('invalid key: ' . $key);
        }
        $list = explode($this->separator, $key);
        if(!$allowNoMember && !isset($list[1]))
        {
            throw new InvalidArgumentException('RedisHashCache $key must have a dot(.)');
        }
        $key = $list[0];
        $member = $list[1] ?? null;
    }
1065448
public function set($member, $value)
    {
        $member = '_'.$member;
        $members = get_object_vars($this);
        if (array_key_exists($member, $members)) {
            if (is_array($this->$member)) {
                $this->{$member}[] = $value;
            } else {
                $this->$member = $value;
            }

            return TRUE;
        }

        return FALSE;
    }
958491
public function remove( $member )
    {
        if( false !== $key = array_search( $member, $this->members, true ) ) {
            unset( $this->members[$key] );
        }
        return $this;
    }
1000904
public function canDelete($member = null)
    {
        $member = $this->getMember($member);

        if (!$member) {
            return false;
        }

        $extended = $this->extendedCan('canDelete', $member);
        if ($extended !== null) {
            return $extended;
        }

        return $this->canEdit($member);
    }
821693
public function zRem($key, $member) {
        return $this->getHandler($this->judge(__FUNCTION__))->zRem($key, $member);
    }
1041417
public function can($perm, $member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }
        if (is_array($perm)) {
            $perm = array_map(array($this, 'can'), $perm, array_fill(0, count($perm), $member));
            return min($perm);
        }
        if ($this->hasMethod($methodName = 'can' . $perm)) {
            return $this->$methodName($member);
        } else {
            return true;
        }
    }
592763
public function llen($key) {
        try {
            $length = $this->getRedis()->lLen($key);
            if ($length === false) {
                throw new ImpossibleValueException();
            }
            return $length;
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
876919
public static Single<Boolean> exists(String key, Object member) {
        return exists(CacheService.CACHE_CONFIG_BEAN, key, member);
    }
1166464
static function MemberCheckList($name, Member $member)
    {    
        $field = new CheckList($name);
        self::AddMembergroupOptions($field);
        $groupIDs = Membergroup::GetKeyList(self::MemberMembergroups($member));
        $field->SetValue($groupIDs);
        return $field;
    }
5645
public boolean haveMember(String memberName) {
		return members.stream().anyMatch((member) -> (member.getName().equals(memberName)));
	}
1092925
public static function becauseUnknownMember(string $enum, string $member): EnumException
    {
        return new self(sprintf('Unknown member "%s" for enum %s', $member, $enum));
    }
670986
public function canCreate($member = null, $context = [])
    {
        if (isset($context['Parent'])) {
             return $context['Parent']->canEdit();
        }
        return $this->MenuSet()->canEdit();
    }
1285821
function sismember(key, member, req) {
  var val = this.getKey(key, req);
  if(val === undefined) return 0;
  return val.sismember(member);
}