FeatureFlagResultCache

Feature Flag result cache. A cache managed by the app that is optionally used by FeatureFlagManager.flag to return an existing value if the flag fails to resolve or no longer exists.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun cache(flag: FeatureFlag, ttl: Duration)

Caches a flag.

Link copied to clipboard
fun cacheAsync(flag: FeatureFlag, ttlMilliseconds: ULong)

Caches a flag in an async method. See cache

Link copied to clipboard
suspend fun flag(name: String): FeatureFlag?

Gets a flag from the cache if it exists.

Link copied to clipboard

Gets a flag as a pending result. See flag.

Link copied to clipboard
suspend fun removeCachedFlag(name: String)

Removes a flag from the cache.

Link copied to clipboard

Removes a cached flag as an async method. See removeCachedFlag