Python-LRU-cache
Python-LRU-cache copied to clipboard
key is in the LRUCacheDict, but i can not access the value
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