MediaCacheConfiguration

data class MediaCacheConfiguration(val memoryStorageTotalCostLimit: Int = 100 * 1024 * 1024, val memoryStorageCountLimit: Int = Int.MAX_VALUE, val diskStorageSizeLimit: Int = 100 * 1024 * 1024)

Configuration for Adapty’s in-memory and disk media caching system.

Used primarily by AdaptyUI for caching paywall and onboarding images.

Constructors

Link copied to clipboard
constructor(memoryStorageTotalCostLimit: Int = 100 * 1024 * 1024, memoryStorageCountLimit: Int = Int.MAX_VALUE, diskStorageSizeLimit: Int = 100 * 1024 * 1024)

Properties

Link copied to clipboard

Maximum disk cache size in bytes. Default: 100 MB.

Link copied to clipboard

Maximum number of cached items in memory.

Link copied to clipboard

Maximum memory cache size in bytes. Default: 100 MB.