kotlin-utils / com.github.mckernant1.fs / TimedFileCache

TimedFileCache

class TimedFileCache

Constructors

<init>

TimedFileCache(location: String = "store", duration: Duration = Duration.ofHours(1), logger: (String) -> Unit = {})

Functions

getResult

fun <T : Serializable> getResult(name: String, alternativeFunction: () -> T): T