示例#1
0
def run(mc):
    print('run')

    res = mc.set_multi({
        "k1": 100 * 'a',
        "k2": 20 * 'b',
        "k3": 10 * 'c',
    })
    print(res)
示例#2
0
def run(mc):
    print('run')

    res = mc.set_multi({
        "k1": 100 * 'a',
        "k2": 20 * 'b',
        "k3": 10 * 'c',
    })
    print(res)
示例#3
0
def run(mc):
    print('run')

    res = mc.set_multi({
        "k1": 100*'a',
        "k2": 20*'b',
        "k3": 10*'c',
    })
    print(res)
    if len(res) > 0:
        raise RuntimeError("failed to set value")

    res = mc.get_multi(["x", "k1", "k2", "k3", "y"])
    print(res)
def run(mc):
    print('run')

    res = mc.set_multi({
        "k1": 100 * 'a',
        "k2": 20 * 'b',
        "k3": 10 * 'c',
    })
    print(res)
    if len(res) > 0:
        raise RuntimeError("failed to set value")

    res = mc.get_multi(["x", "k1", "k2", "k3", "y"])
    print(res)