com.bumptech.glide.load.engine.cache
Class InternalCacheDiskCacheFactory

java.lang.Object
  extended by com.bumptech.glide.load.engine.cache.InternalCacheDiskCacheFactory
All Implemented Interfaces:
DiskCache.Factory

public final class InternalCacheDiskCacheFactory
extends Object
implements DiskCache.Factory

Creates an DiskLruCache based disk cache in the internal disk cache directory.


Constructor Summary
InternalCacheDiskCacheFactory(Context context, int diskCacheSize)
           
InternalCacheDiskCacheFactory(Context context, String diskCacheName, int diskCacheSize)
           
 
Method Summary
 DiskCache build()
          Returns a new disk cache, or null if no disk cache could be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalCacheDiskCacheFactory

public InternalCacheDiskCacheFactory(Context context,
                                     int diskCacheSize)

InternalCacheDiskCacheFactory

public InternalCacheDiskCacheFactory(Context context,
                                     String diskCacheName,
                                     int diskCacheSize)
Method Detail

build

public DiskCache build()
Description copied from interface: DiskCache.Factory
Returns a new disk cache, or null if no disk cache could be created.

Specified by:
build in interface DiskCache.Factory