Skip to content

fix lru cache expire - #60

Open
Mahdi-zarei wants to merge 4 commits into
SagerNet:devfrom
Mahdi-zarei:fix-lru
Open

fix lru cache expire#60
Mahdi-zarei wants to merge 4 commits into
SagerNet:devfrom
Mahdi-zarei:fix-lru

Conversation

@Mahdi-zarei

Copy link
Copy Markdown
Contributor

LRU cache can both support a default age and specific expire time for each entry, so when we are checking for whether an entry has expired we must check if the value has an expire time and if it has expired, not if we have a default age and it has expired.

@nekohasekai
nekohasekaiforce-pushed the dev branch 10 times, most recently from 50fa1ab to cd17884CompareOctober 22, 2024 03:19
@nekohasekai
nekohasekaiforce-pushed the dev branch 7 times, most recently from 8452992 to c80c8f9CompareNovember 5, 2024 10:43
@nekohasekai
nekohasekaiforce-pushed the dev branch 11 times, most recently from cc74a33 to e52e04fCompareNovember 15, 2024 08:27
@nekohasekai
nekohasekaiforce-pushed the dev branch 2 times, most recently from 2e66165 to 4dabb9bCompareJanuary 9, 2025 07:59
Sign up for freeto 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.

3 participants

@Mahdi-zarei@nekohasekai@wwqgtxx