Python-LRU-cache icon indicating copy to clipboard operation
Python-LRU-cache copied to clipboard

key is in the LRUCacheDict, but i can not access the value

Open lushilu opened this issue 8 years ago • 0 comments

m = LRUCacheDict(max_size=3, expiration=5)
m["1"]=1
m["2"]=2
m["3"]=3
time.sleep(6)
if "1" in m:
    print m["1"]   #  KeyError

lushilu avatar Sep 29 '17 08:09 lushilu