Cached

fun OpenFeature.Companion.Cached(delegate: OpenFeature, flagStorage: Storage<CachedEvaluation> = Storage.InMemory(), bulkStorage: Storage<CachedBulkEvaluation> = Storage.InMemory(), ttl: Duration = Duration.ofHours(1), clock: Clock = Clock.systemUTC()): OpenFeature(source)

Wraps an OpenFeature instance and caches the results for a given TTL.