def _set(self, cmd, key, val, flags, expireTime, cas):
        if self._disconnected:
            return fail(RuntimeError("not connected"))
        if not isinstance(key, str):
            return fail(ClientError(
                "Invalid type for key: %s, expecting a string" % (type(key),)))
        if len(key) > self.MAX_KEY_LENGTH:
            return fail(ClientError("Key too long"))
        if not isinstance(val, str):
            return fail(ClientError(
                "Invalid type for value: %s, expecting a string" %
                (type(val),)))
        if cas:
            cas = " " + cas
        length = len(val)
        fullcmd = "%s %s %d %d %d%s" % (
            cmd, key, flags, expireTime, length, cas)
        self.sendLine(fullcmd)
        self.sendLine(val)
        cmdObj = Command(cmd, key=key, flags=flags, length=length)
        self._current.append(cmdObj)
        return cmdObj._deferred
The value corresponding to a bidirectionally quantized quantity.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/protocols/memcache.py/MemCacheProtocol._set--crossover with--dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/_bunquantize.py/bunquantize