CacheProvider

sealed class CacheProvider

Decide whether or not we want Player to create and use a Cache instance or if we want to provide it externally.

Inheritors

Types

Link copied to clipboard
data class External(val cache: Cache) : CacheProvider

Use an external Cache instead of Player creating one of its own. Reason for using this is to reuse a cache instance that is already in use.

Link copied to clipboard
data class Internal(val cacheSizeBytes: ByteAmount = 2.gigabytes) : CacheProvider

Let Player create and use its own Cache instance with custom parameters.