SnapshotFileCacheBuilder

Builder for a SnapshotPersistentCache that persists data to a file.

NOTE: The SnapshotPersistentCache is not thread safe and access from multiple threads must be synchronized. For any single File only one SnapshotPersistentCache should exist at a time.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun dispatcher(dispatcher: CoroutineDispatcher): SnapshotFileCacheBuilder<T>

The CoroutineDispatcher to use when doing File I/O. Defaults to Dispatchers.IO.

Link copied to clipboard
abstract fun telemeter(telemeter: Telemeter): SnapshotFileCacheBuilder<T>

The Telemeter to use for logging internal events and errors. Defaults to null (no logging).