commonMain.com.seiko.imageloader.cache.CachePolicy.kt Maven / Gradle / Ivy
The newest version!
package com.seiko.imageloader.cache
/**
* Represents the read/write policy for a cache source.
*/
enum class CachePolicy(
val readEnabled: Boolean,
val writeEnabled: Boolean,
) {
ENABLED(true, true),
READ_ONLY(true, false),
WRITE_ONLY(false, true),
DISABLED(false, false),
}