memory

open fun <T> memory(key: String): Option<T>

Returns a new Option that does not affect disk cache keys with a null default value.

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> memory(key: String, defaultValue: T): Option<T>

Returns a new Option that does not affect disk cache keys with 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).