[go: nahoru, domu]

Skip to content
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

changing storeKeyconverter logic to count based logic #2817

Merged
merged 13 commits into from
Jul 17, 2024

Conversation

manbearpig1996
Copy link
Contributor
@manbearpig1996 manbearpig1996 commented Jul 1, 2024

Added tryDropCache for keys in StoreKeyConverter to try and drop some keys.
Adding an AbstractStoreKeyConverter and implementing in current test classes of StoreKeyConverter
to have same expected logic everywhere.
AbstractStoreKeyConverter is using a counting cache logic for keys.
Whenever a key is added its count will keep increasing, when tryDropCache is called for keys, count will decrease.
Keys will be dropped, when count becomes 0.
Rest of the behviour is same as expected

Copy link
Collaborator
@justinlin-linkedin justinlin-linkedin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
@mudit-saxena mudit-saxena left a comment

Choose a reason for hiding this comment

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

GTG

@manbearpig1996 manbearpig1996 merged commit 7525484 into master Jul 17, 2024
5 checks passed
@manbearpig1996 manbearpig1996 deleted the navneet/storeKeyConveter branch July 17, 2024 08:27
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.

None yet

3 participants