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

Automatic deleting of files in cache > X number of days #12

Open
kalvish21 opened this issue May 5, 2014 · 1 comment
Open

Automatic deleting of files in cache > X number of days #12

kalvish21 opened this issue May 5, 2014 · 1 comment

Comments

@kalvish21
Copy link

SDWebImage in iOS has the ability to delete files from cache that are older than a certain number of days. Is there this functionality in Shutterbug?

@acq
Copy link
Contributor

acq commented May 6, 2014

Hi,
The way the cache works in Shutterbug (taken from DiskLruCache) is the following :
We define a maximum size for the cache (currently 100Mo: https://github.com/applidium/Shutterbug/blob/master/Shutterbug/src/com/applidium/shutterbug/cache/ImageCache.java#L30). If the cache would use more, we remove the Least Recently Used (LRU) objects.
There is no API available currently to force the cache to delete elements if the cache is smaller than the maximum size.

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

No branches or pull requests

2 participants