picasso2-okhttp3-downloader icon indicating copy to clipboard operation
picasso2-okhttp3-downloader copied to clipboard

OkHttp3Downloader maxSize

Open anonym24 opened this issue 7 years ago • 2 comments

public OkHttp3Downloader(final File cacheDir, final long maxSize);

it says

maxSize The size limit for the cache.

well, the size in bytes, kilobytes?

also if it reaches this limit what happens at that point? does it remove all caches or only removes the oldest images from cache?

p.s. would it better if such constructors would give more description/information...

anonym24 avatar Jun 28 '18 22:06 anonym24

Bytes

JakeWharton avatar Jun 28 '18 22:06 JakeWharton

What happens is an implementation detail of OkHttp, not this library.

JakeWharton avatar Jun 28 '18 22:06 JakeWharton