Package 

Class DiskLruCacheFactory

    • Constructor Detail

      • DiskLruCacheFactory

        DiskLruCacheFactory(String diskCacheFolder, long diskCacheSize)
      • DiskLruCacheFactory

        DiskLruCacheFactory(String diskCacheFolder, String diskCacheName, long diskCacheSize)
      • DiskLruCacheFactory

        DiskLruCacheFactory(DiskLruCacheFactory.CacheDirectoryGetter cacheDirectoryGetter, long diskCacheSize)
        When using this constructor getCacheDirectory will be called outof UI thread, allowing to do I/O access without performance impacts.
        Parameters:
        cacheDirectoryGetter - Interface called out of UI thread to get the cache folder.
        diskCacheSize - Desired max bytes size for the LRU disk cache.
    • Method Detail

      • build

         DiskCache build()

        Returns a new disk cache, or {@code null} if no disk cache could be created.