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

Add options regarding disk cache TTL extending #1287

Conversation

makesource
Copy link
Contributor

As described in #1286,
This PR is for diskCache TTL extending strategy.

Use case

If you use diskCache option, you may want to control disk Cache expiration date.
But It is hard to control the expiration because of the TTL extending.
(In worst case, the image will never expired if frequently accessed)
So in this PR, I want to get some more accurate control of cache by offering diskCache expirationExtending options. (like memorycache extending option in #1196)

Feel free to give any suggestions and thoughts :)
Thanks.

@makesource makesource changed the base branch from master to try/creating-failure September 23, 2019 12:49
@makesource makesource changed the base branch from try/creating-failure to master September 23, 2019 12:49
@makesource
Copy link
Contributor Author

Hard to set up DiskCache Tests because fileAttributeDate rounds up miliseconds 😭

@onevcat
Copy link
Owner

onevcat commented Sep 23, 2019

No worry! I will check the test things.

@onevcat
Copy link
Owner

onevcat commented Sep 24, 2019

LGTM!

@onevcat onevcat merged commit 9dfa865 into onevcat:master Sep 24, 2019
@onevcat
Copy link
Owner

onevcat commented Sep 24, 2019

@makesource

Your code is great. Thank you for your contribution!

@onevcat
Copy link
Owner

onevcat commented Nov 6, 2019

Related #1152

@onevcat onevcat mentioned this pull request Nov 6, 2019
2 tasks
skoduricg pushed a commit to rentpath/Kingfisher that referenced this pull request Sep 24, 2021
…ache-ttl-extending-options

Add options regarding disk cache TTL extending
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

2 participants