Configuration

class Configuration(var directoryPath: String, var maxSize: Long)

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

Constructors

Link copied to clipboard
constructor(directoryPath: String, maxSize: Long)

Properties

Link copied to clipboard

The version of the cache. This is useful to invalidate the cache when the format of the data stored in the cache changes.

Link copied to clipboard
var creationScope: CoroutineScope

The coroutine dispatcher used for executing creationFunction of put requests.

Link copied to clipboard

The path of the directory where the cache files and the journal are 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 the file names.

Link copied to clipboard

The maximum size of the cache in bytes.

Link copied to clipboard

The strategy used to evict entries from the cache.