I'm currently using this as the backing for a disk cache, and sometimes I want to clear out x number of bytes. I'm already using custom weighter and lifecycle, my question is, is there way to say "clear out xx weight units".
I think I could use retain for this, but I'm not sure what order the entries are returned in, if it returns the entries in the order that they would be evicted in that would be perfect, even if it was eviction reverse order it would be fine too.
I'm currently using this as the backing for a disk cache, and sometimes I want to clear out x number of bytes. I'm already using custom weighter and lifecycle, my question is, is there way to say "clear out xx weight units".
I think I could use
retainfor this, but I'm not sure what order the entries are returned in, if it returns the entries in the order that they would be evicted in that would be perfect, even if it was eviction reverse order it would be fine too.