ModelCache

constructor(directory: String, fileSystem: ModelFileSystem = defaultModelFileSystem(), maxBytes: Long = Long.MAX_VALUE, clock: () -> Long = { currentTimeMillis() })(source)

Parameters

directory

cache directory; created on first use.

maxBytes

disk budget enforced by trimToSize and after touch.

clock

epoch-millisecond clock (injectable for tests).