Skip to content

Dchakravarthy quora/lru clear #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dchakravarthy
Copy link
Contributor

add support to clear alru cache

Reviewers:dkang

Test Plan:add test

Differential Revision:

Asana Tasks:

Screenshot:

CC:

Deploy To:
@@ -247,6 +247,7 @@ def wrapper(*args, **kwargs):
cache[key] = value
return value

wrapper.clear = cache.clear
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest calling this cache_clear to align with @functools.lru_cache: https://docs.python.org/3.14/library/functools.html#functools.lru_cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants