private void trimToSize() throws IOException {
    while (size > maxSize) {
      Map.Entry<String, Entry> toEvict = lruEntries.entrySet().iterator().next();
      remove(toEvict.getKey());
    }
  }
Closes this cache. Stored values will remain on the filesystem.
core/src/main/java/com/bumptech/glide/disklrucache/DiskLruCache.java