Back to Fresco

DiskCacheConfig

docs/javadoc/reference/com/facebook/cache/disk/DiskCacheConfig.html

3.6.015.4 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Nested Classes | Protected Ctors | Methods | Inherited Methods | [Expand All]

public class

DiskCacheConfig

extends Object

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

Class Overview

Configuration class for a DiskStorageCache.

Summary

Nested Classes
class
Protected Constructors
Public Methods
String
Supplier<File>
CacheErrorLogger
CacheEventListener
Context
long
DiskTrimmableRegistry
EntryEvictionComparatorSupplier
boolean
long
long
int
static DiskCacheConfig.Builder
Create a new builder.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

|

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. |

+Generated by Doclava. +