Back to Fresco

MemoryCacheParams

docs/javadoc/reference/com/facebook/imagepipeline/cache/MemoryCacheParams.html

3.6.016.6 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

Summary: Fields | Ctors | Inherited Methods | [Expand All]

public class

MemoryCacheParams

extends Object

| java.lang.Object | | ↳ | com.facebook.imagepipeline.cache.MemoryCacheParams |

Class Overview

Configuration for a memory cache.

Summary

Fields
public final int
public final int
public final int
public final int
public final int
public final long
Public Constructors
Pass arguments to control the cache's behavior in the constructor.
Pass arguments to control the cache's behavior in the constructor.

| [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() |

|

Fields

public final int maxCacheEntries

public final int maxCacheEntrySize

public final int maxCacheSize

public final int maxEvictionQueueEntries

public final int maxEvictionQueueSize

public final long paramsCheckIntervalMs

Public Constructors

public MemoryCacheParams(int maxCacheSize, int maxCacheEntries, int maxEvictionQueueSize, int maxEvictionQueueEntries, int maxCacheEntrySize)

Pass arguments to control the cache's behavior in the constructor.

Parameters

| maxCacheSize | The maximum size of the cache, in bytes. | | maxCacheEntries | The maximum number of items that can live in the cache. | | maxEvictionQueueSize | The eviction queue is an area of memory that stores items ready for eviction but have not yet been deleted. This is the maximum size of that queue in bytes. | | maxEvictionQueueEntries | The maximum number of entries in the eviction queue. | | maxCacheEntrySize | The maximum size of a single cache entry. |

public MemoryCacheParams(int maxCacheSize, int maxCacheEntries, int maxEvictionQueueSize, int maxEvictionQueueEntries, int maxCacheEntrySize, long paramsCheckIntervalMs)

Pass arguments to control the cache's behavior in the constructor.

Parameters

| maxCacheSize | The maximum size of the cache, in bytes. | | maxCacheEntries | The maximum number of items that can live in the cache. | | maxEvictionQueueSize | The eviction queue is an area of memory that stores items ready for eviction but have not yet been deleted. This is the maximum size of that queue in bytes. | | maxEvictionQueueEntries | The maximum number of entries in the eviction queue. | | maxCacheEntrySize | The maximum size of a single cache entry. | | paramsCheckIntervalMs | Interval between checking parameters for updated values in ms. |

+Generated by Doclava. +