Skip to content

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

@lushilu

Description

@lushilu
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions