Skip to content

Lru cache refresh question #87

@hwchen

Description

@hwchen

Hello, I have a question about the Lru Cache:

https://github.com/msiemens/tinydb/blob/master/tinydb/utils.py#L36

Should the refresh() method only append a value only if it already existed and was removed? For example, in when refresh() is called in get(), I think it's possible that a wrong key will still result in that key being added to the lru.

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