CacheEvent

sealed class CacheEvent<K>

Types

FetchSuccess
Link copied to clipboard
common
data class FetchSuccess<K>(key: K) : CacheEvent<K>

Emitted when fetch operation was successfully completed, value was stored in the value store, and key was marked as fresh

Hit
Link copied to clipboard
common
data class Hit<K>(key: K, timestamps: KeyTimestamps?) : CacheEvent<K>

Emitted when cache hit occurs when loading the key.

LoadStarted
Link copied to clipboard
common
data class LoadStarted<K>(key: K) : CacheEvent<K>

Emitted when key loading is about to start. Will be followed by either Hit or Miss and then FetchSuccess (if there are no errors)

Miss
Link copied to clipboard
common
data class Miss<K>(key: K, timestamps: KeyTimestamps?, forceRefresh: Boolean) : CacheEvent<K>

Emitted when cache miss occurs when loading the key. Fetching value will start after this event is emitted.

Inheritors

CacheEvent
Link copied to clipboard
CacheEvent
Link copied to clipboard
CacheEvent
Link copied to clipboard
CacheEvent
Link copied to clipboard