Configuration

class Configuration(var directory: Path, var maxSize: Long)

Configuration for OkioFileKache. It is used as a receiver of OkioFileKache builder which is invoke.

Constructors

Link copied to clipboard
constructor(directory: Path, maxSize: Long)

Properties

Link copied to clipboard

The version of the entries in this cache. It is used for invalidating the cache. Update it when you change the format of the entries in this cache.

Link copied to clipboard
var creationScope: CoroutineScope

The coroutine dispatcher used for executing creationFunction of put requests.

Link copied to clipboard
var directory: Path

The directory used for storing the cached files and the journal.

Link copied to clipboard
var fileSystem: FileSystem

The file system used for storing the journal and cached files. See FileSystem

Link copied to clipboard

The KeyTransformer used to transform the keys before they are used to store and retrieve data. It is needed to avoid using invalid characters in the file names.

Link copied to clipboard

The max size of this cache ib bytes.

Link copied to clipboard

The strategy used for evicting elements. See KacheStrategy