Skip to content

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:
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