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

Refactored Eviction framework with Basic LRU based Batch Eviction #1268

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

soumya-codes
Copy link
Contributor

@soumya-codes soumya-codes commented Nov 11, 2024

This PR refactors the eviction framework and adds the basic implementation for Basic LRU based Batch Eviction.


for h.Len() > 0 {
item := h.pop()
store.Del(item.key, WithDelCmd(Evict))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JyotinderSingh wanted to discuss if we need some kind of special handling during eviction for QWATCH and WATCH implementations.

@soumya-codes soumya-codes force-pushed the soumya-codes/eviction branch 3 times, most recently from 2854dab to 480eadb Compare November 12, 2024 15:43
@soumya-codes soumya-codes marked this pull request as ready for review November 12, 2024 17:35
internal/eval/store_eval.go Outdated Show resolved Hide resolved
@soumya-codes soumya-codes force-pushed the soumya-codes/eviction branch 2 times, most recently from df3b33a to 6ce1e7a Compare November 13, 2024 14:58
@soumya-codes soumya-codes merged commit 319d2b2 into DiceDB:master Nov 13, 2024
2 checks passed
@soumya-codes soumya-codes deleted the soumya-codes/eviction branch November 13, 2024 16:44
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