object Companion
source · line 59public
public companion
Opens and loads a disk-cache directory.
function open
source · line 64public
public suspend fun open(directory: Path, maxBytes: Long = 268435456L, maxEntryBytes: Long = 67108864L, maxEntries: Long = 1024L, maxMetadataBytes: Long = 1048576L, syncOnCommit: Boolean = false): DiskHttpCache
Creates the directory, loads valid completed entries, and removes abandoned pending or unusable cache files under the configured limits.
parameter maxEntries
source · line 65public
maxEntries: Long = 1024L
parameter maxEntryBytes
source · line 64public
maxEntryBytes: Long = 67108864L
parameter maxBytes
source · line 64public
maxBytes: Long = 268435456L
parameter syncOnCommit
source · line 65public
syncOnCommit: Boolean = false
parameter directory
source · line 64public
directory: Path
parameter maxMetadataBytes
source · line 65public
maxMetadataBytes: Long = 1048576L