Is the provided value is in the ``Set``?

        :param name: str     the name of the redis key
        :param value: str
        :return: Future()
197016
def sismember(self, name, value):
        
        with self.pipe as pipe:
            return pipe.sismember(self.redis_key(name),
                                  self.valueparse.encode(value))
214322
def set(self, name, value, ex=None, px=None, nx=False, xx=False):
        
        self.client.set(name=name, value=value, px=px, nx=nx, xx=xx)
175263
def set_session_value(self, name, value):
        """"""

        self.redis().hset(self._session_key, name, value)
        self._update_session_expiration()
1286291
def set_option(name, value):
    
    d = globals()

    if name in {'get_option', 'set_option'} or name not in d:
        from ..exceptions import PlotnineError
        raise PlotnineError("Unknown option {}".format(name))

    old = d[name]
    d[name] = value
    return old
12163
def getSet(self, name):
        
        return lock_and_call(
            lambda: Set(self._impl.getSet(name)),
            self._lock
        )
1045177
def set(self, key, val, time=0, min_compress_len=0):
        """"""
        if not self.servers:
            return

        key = self._qualified_key(key)
        hashed_key = self.key_hasher(key)
        val = (key, val)

        self.client.set(key=hashed_key,
                        val=val,
                        time=time,
                        min_compress_len=min_compress_len)
        self.logger("SET: %s", key)
817189
def set(id, value, options = {})
      id = Array(id)
      id.push(nil) if id.empty?
      id[id.size - 1] ||= next_id(id[0..-2])
      with_redis do |redis|
        redis.set(redis_key_for(id), dump(value), redis_set_options.merge(options))
      end
      id.last
    end
604978
def get_session_value(self, name, default=None):
        """"""

        value = self.redis().hget(self._session_key, name) or default
        self._update_session_expiration()
        return value
25325
def rpush(self, name, *values):
        
        with self.pipe as pipe:
            v_encode = self.valueparse.encode
            values = [v_encode(v) for v in self._parse_values(values)]
            return pipe.rpush(self.redis_key(name), *values)
545544
def zscore(self, name, value):
        
        with self.pipe as pipe:
            return pipe.zscore(self.redis_key(name),
                               self.valueparse.encode(value))
465989
def lrange(self, name, start, stop):
        
        with self.pipe as pipe:
            f = Future()
            res = pipe.lrange(self.redis_key(name), start, stop)

            def cb():
                f.set([self.valueparse.decode(v) for v in res.result])

            pipe.on_execute(cb)
            return f
618425
def save(self, value, redis, *, commit=True):
        '''  '''
        value = self.prepare(value)

        if value is not None:
            redis.hset(self.obj.key(), self.name, value)
        else:
            redis.hdel(self.obj.key(), self.name)

        if self.index:
            key = self.key()

            if self.name in self.obj._old:
                redis.hdel(key, self.obj._old[self.name])

            if value is not None:
                redis.hset(key, value, self.obj.id)
668599
def zincrby(self, name, value, amount=1):
        
        with self.pipe as pipe:
            return pipe.zincrby(self.redis_key(name),
                                value=self.valueparse.encode(value),
                                amount=amount)
413901
function set($key, $value, $expire = 0)
    {
        if ($expire <= 0)
        {
            $expire = 0x7fffffff;
        }
        return $this->redis->setex($key, $expire, serialize($value));
    }
922659
def set(self, name: str, value: str) -> None:
        
        name = name.casefold()
        self._headers[name] = value
732773
def set(self, key, val):
        
        data = self.get_data(True)
        if data is not None:
            data[key] = val
        else:
            raise RuntimeError("No task is currently running")
587281
def set(self, value):
        '''
        
        '''
        with self._reference.get_lock():
            self._reference.value = value
            return value