clearOn

open fun clearOn(shouldClear: () -> Boolean): SingleObjectCache<T>(source)

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