SingleObjectCache

interface SingleObjectCache<T : Any>

Inheritors

Properties

Link copied to clipboard
abstract val value: T

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
open fun clearOn(shouldClear: () -> Boolean): SingleObjectCache<T>

Creates a new cache, that wraps the old cache and automatically calls @see clear before retrieving a value if shouldClear returns true