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 = JavaFileKache(directory = File("cache"), maxSize = 100L * 1024L * 1024L) {
strategy = KacheStrategy.LRU
// ...
}
Content copied to clipboard
See also
Types
Link copied to clipboard
Configuration for JavaFileKache used as a receiver for its builder function.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Returns the file corresponding to the given key, or null
if such a key is not present in the cache.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard