def dut(): dut = Kuaiqu(maxsize=20, hysteresis=10, expiration=None) for i in range(10): dut.set(string.ascii_lowercase[i], i) return dut
def dut(): dut = Kuaiqu(maxsize=20, hysteresis=10, expiration=None) dut.set("key", "value") return dut
def dut(): dut = Kuaiqu(rolling=1.0 / 240) # 0.25 seconds dut.set("key", "value") return dut
def dut(): return Kuaiqu(maxsize=20, hysteresis=10, expiration=None)
def dut(): dut = Kuaiqu(expiration=1.0 / 240) # 0.25 seconds dut.set("key", "value") return dut