Configuration

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

Configuration for JavaFileKache used as a receiver for its builder function.

Constructors

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

Properties

Link copied to clipboard

The version of the cache.

Link copied to clipboard
var creationScope: CoroutineScope

The coroutine dispatcher used for executing creationFunction of put requests.

Link copied to clipboard

The directory where the cache files and the journal will be stored.

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 file names.

Link copied to clipboard

The maximum capacity of the cache.

Link copied to clipboard

The strategy used for evicting elements.