JavaFileKache
A persistent coroutine-safe ContainerKache implementation that uses Okio to store files under the hood and exposes a Java's File-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(directory = File("cache"), maxSize = 100L * 1024L * 1024L) {
strategy = KacheStrategy.LRU
// ...
}Content copied to clipboard
See also
Types
Link copied to clipboard
Configuration for JavaFileKache. It is used as a receiver of JavaFileKache builder which is invoke.