/** * Returns the maximum number of bytes that the L2 disk cache should use to * store its data. * * @return maxSize */ public synchronized final long maxSizeDisk() { return mDiskCache == null ? 0L : mDiskCache.getMaxSize(); }
String key = hashKeyForDisk(data); final int DISK_CACHE_INDEX = 0; long currentMaxSize = cache.getMaxSize(); float percentageSize = Math.round((cache.size() * 100.0f) / currentMaxSize); if (percentageSize >= 90) // cache size reaches 90%