FileKache
A persistent coroutine-safe ContainerKache implementation that uses Okio to store files under the hood and exposes a simple path-based API.
It uses a journal file to keep track of the cache state and to ensure that the cache is always in a consistent state.
It can be built using the following syntax:
val cache = OkioFileKache(directoryPath = "cache", maxSize = 100L * 1024L * 1024L) {
strategy = KacheStrategy.LRU
// ...
}Content copied to clipboard