public class

DiskCacheConfig

extends Object
java.lang.Object
   ↳ com.facebook.cache.disk.DiskCacheConfig

Class Overview

Configuration class for a DiskStorageCache.

Summary

Nested Classes
class DiskCacheConfig.Builder  
Protected Constructors
DiskCacheConfig(DiskCacheConfig.Builder builder)
Public Methods
String getBaseDirectoryName()
Supplier<File> getBaseDirectoryPathSupplier()
CacheErrorLogger getCacheErrorLogger()
CacheEventListener getCacheEventListener()
Context getContext()
long getDefaultSizeLimit()
DiskTrimmableRegistry getDiskTrimmableRegistry()
EntryEvictionComparatorSupplier getEntryEvictionComparatorSupplier()
boolean getIndexPopulateAtStartupEnabled()
long getLowDiskSpaceSizeLimit()
long getMinimumSizeLimit()
int getVersion()
static DiskCacheConfig.Builder newBuilder(Context context)
Create a new builder.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected DiskCacheConfig (DiskCacheConfig.Builder builder)

Public Methods

public String getBaseDirectoryName ()

public Supplier<File> getBaseDirectoryPathSupplier ()

public CacheErrorLogger getCacheErrorLogger ()

public CacheEventListener getCacheEventListener ()

public Context getContext ()

public long getDefaultSizeLimit ()

public DiskTrimmableRegistry getDiskTrimmableRegistry ()

public EntryEvictionComparatorSupplier getEntryEvictionComparatorSupplier ()

public boolean getIndexPopulateAtStartupEnabled ()

public long getLowDiskSpaceSizeLimit ()

public long getMinimumSizeLimit ()

public int getVersion ()

public static DiskCacheConfig.Builder newBuilder (Context context)

Create a new builder.

Parameters
context If this is null, you must explicitly call setBaseDirectoryPath(File) or setBaseDirectoryPathSupplier(Supplier) or the config won't know where to physically locate the cache.