cacheSelfieJson

inline fun <T> cacheSelfieJson(noinline toCache: () -> T): CacheSelfie<T>

Memoizes any type which is marked with @kotlinx.serialization.Serializable as pretty-printed json.