-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: add clear method to cache object type #2950
base: main
Are you sure you want to change the base?
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
0c1fde6
to
9502485
Compare
Thank you for your PR! Let me consider the clearing cache feature separately. |
9502485
to
133d5ad
Compare
Thank you for your feedback. I updated the pull request and removed unnecessary methods and properties as you mentioned. |
This commit updates the type definition of the Cache object to align with the native JavaScript Map data structure. This offers users access to clear method available on Map.
cache.clear(): Removes all key-value pairs from the cache (useful scenarios include user logout).
Relevant issue:
#2877