Example #1
0
def dut():
    dut = Kuaiqu(maxsize=20, hysteresis=10, expiration=None)

    for i in range(10):
        dut.set(string.ascii_lowercase[i], i)

    return dut
Example #2
0
def dut():
    dut = Kuaiqu(maxsize=20, hysteresis=10, expiration=None)
    dut.set("key", "value")
    return dut
Example #3
0
def dut():
    dut = Kuaiqu(rolling=1.0 / 240)  # 0.25 seconds
    dut.set("key", "value")
    return dut
Example #4
0
def dut():
    return Kuaiqu(maxsize=20, hysteresis=10, expiration=None)
Example #5
0
def dut():
    dut = Kuaiqu(expiration=1.0 / 240)  # 0.25 seconds
    dut.set("key", "value")
    return dut