Package-level declarations

Types

Link copied to clipboard

A persistent coroutine-safe ContainerKache implementation that uses Okio to store files under the hood and exposes a simple path-based API.

Link copied to clipboard

A persistent coroutine-safe ContainerKache implementation that uses Okio to store files under the hood and exposes a Java's File-based API.

Link copied to clipboard
fun interface KeyTransformer

An interface that can be used to implement custom key transformers for FileKache implementations.

Link copied to clipboard

A persistent coroutine-safe ContainerKache implementation that uses Okio to store files.

Link copied to clipboard

A KeyTransformer that transforms keys to an SHA-256 hash of them.

Functions

Link copied to clipboard
suspend fun FileKache(directory: String, maxSize: Long, configuration: FileKache.Configuration.() -> Unit = {}): FileKache

Creates a new instance of FileKache with the given directory, maxSize and configuration.

Link copied to clipboard
suspend fun JavaFileKache(directory: File, maxSize: Long, configuration: JavaFileKache.Configuration.() -> Unit = {}): JavaFileKache

Creates a new JavaFileKache instance with the given directory and maxSize and is configured by configuration.

Link copied to clipboard
suspend fun OkioFileKache(directory: Path, maxSize: Long, configuration: OkioFileKache.Configuration.() -> Unit = {}): OkioFileKache

Creates a new instance of OkioFileKache with the given directory, maxSize and configuration.