Scoop API

scoop:scoop.http.client:0.1.0

Companion

object Companion

source · line 59
public
public companion

Opens and loads a disk-cache directory.

function open

source · line 64
public
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.