Package-level declarations
Types
Link copied to clipboard
class CachedFeatureStore(delegate: FeatureStore, ttl: Duration, timeSource: TimeSource = TimeSource.Monotonic) : FeatureStore
Link copied to clipboard
class CachedPropertyStore(delegate: PropertyStore, ttl: Duration, timeSource: TimeSource = TimeSource.Monotonic) : PropertyStore
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun FeatureStore.cached(ttl: Duration = 30.seconds, timeSource: TimeSource = TimeSource.Monotonic): FeatureStore
fun PropertyStore.cached(ttl: Duration = 30.seconds, timeSource: TimeSource = TimeSource.Monotonic): PropertyStore
Serves reads from a snapshot of delegate refreshed every ttl; writes go through and drop the snapshot.