DropCachesUseCase

Clears one or more of the client's caches — the mechanism behind the DropCaches event. Reachable via get<DropCachesUseCase>() from a custom EventRunner/TileHolderBuilder that needs the same cache-clearing behavior.

Constructors

Link copied to clipboard
constructor(repository: MosaicRepository)

Types

Link copied to clipboard
data class Params(val dropScreensCache: Boolean, val dropInitialGraphCache: Boolean, val dropVersionCache: Boolean)

Functions

Link copied to clipboard
open suspend override fun execute(params: DropCachesUseCase.Params): Result<Unit>
Link copied to clipboard
suspend operator fun invoke(params: DropCachesUseCase.Params): Result<Unit>