Package-level declarations
Types
Link copied to clipboard
interface CacheRepository
The application's cache directories.
Link copied to clipboard
class DefaultCacheRepository(context: Context, diagnostics: DiagnosticsReporter, deleteRecursively: (File) -> Boolean = File::deleteRecursively, dispatchers: DispatcherProvider = StandardDispatchers()) : CacheRepository
Clears application cache directories on the IO dispatcher, since the recursive delete blocks. An incomplete deletion is logged here because callers cannot identify the failed directories.