disk

open fun <T> disk(key: String, cacheKeyUpdater: Option.CacheKeyUpdater<T>): Option<T>

Returns a new Option that uses the given to update disk cache keys.

Parameters

key

A unique package prefixed String that identifies this option (must be stable across builds, so getName should not be used).


open fun <T> disk(    key: String,     defaultValue: T,     cacheKeyUpdater: Option.CacheKeyUpdater<T>): Option<T>

Returns a new Option that uses the given to update disk cache keys and provides the given value as the default value.

Parameters

key

A unique package prefixed String that identifies this option (must be stable across builds, so getName should not be used).