AndroidVideoCache icon indicating copy to clipboard operation
AndroidVideoCache copied to clipboard

What happens when the cache is full?

Open monkey008 opened this issue 7 years ago • 4 comments

What happens when the cache is full? Automatically clear the cache? Or direct play video does not cache?

monkey008 avatar Mar 06 '18 03:03 monkey008

Anyway to clear cache?

assassins719 avatar Mar 22 '18 15:03 assassins719

Any answers??? @Assassins719 the way to clear the cache is:
try { Utils.cleanVideoCacheDir(this); } catch (IOException e) { Log.e(null, "Error cleaning cache", e); Toast.makeText(this, "Error cleaning cache", Toast.LENGTH_LONG).show(); }

But want to know what happen when the cache is full, is free automatic or not? @danikula can you help us?

jjimenez0611 avatar Sep 05 '18 20:09 jjimenez0611

Thank you very much

Sent from Mail for Windows 10

From: Jose Jimenez Sent: Thursday, September 6, 2018 4:40 AM To: danikula/AndroidVideoCache Cc: Assassins719; Mention Subject: Re: [danikula/AndroidVideoCache] What happens when the cache is full?(#203)

Any answers??? @Assassins719 the way to clear the cache is: try { Utils.cleanVideoCacheDir(this); } catch (IOException e) { Log.e(null, "Error cleaning cache", e); Toast.makeText(this, "Error cleaning cache", Toast.LENGTH_LONG).show(); } But want to know what happen when the cache is full, is free automatic or not? @danikula can you help us? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

assassins719 avatar Sep 06 '18 02:09 assassins719

This library use LRU strategy for cache size.

mrkazansky avatar May 16 '19 04:05 mrkazansky