Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Add call to force immediate reduction in cache size #35

Open
jwoolston opened this issue Mar 18, 2013 · 0 comments
Open

Add call to force immediate reduction in cache size #35

jwoolston opened this issue Mar 18, 2013 · 0 comments

Comments

@jwoolston
Copy link

We use this cache to store images and allow the user to adjust the cache size. If there is a sufficiently large difference in current storage vs. new cache size, then the cache is at least partially reduced imediately. However when there is a difference which does not match the requirements of half of the journal size or 2000 ops, then it seems the size will not be adjusted. It would be nice to have a call like DiskLruCache.setMaxSizeImmediate(size) or just a flag on whether it should be immediately enforced.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant