FetchResult
enum FetchResult
Result of a cache fetch attempt for a key.
-
Key failed validation according to the configured validator.
Declaration
Swift
case invalidKey
-
Cache contained an explicit null entry for this key.
Declaration
Swift
case hitNullElement
-
Cache hit with a non-null element.
Declaration
Swift
case hitNonNullElement(element: Element)
-
Key not present in cache.
Declaration
Swift
case miss
-
Convenience accessor returning the associated element if present; otherwise nil.
Declaration
Swift
public var element: Element? { get }
-
Indicates whether the fetch resulted in a miss.
Declaration
Swift
public var isMiss: Bool { get }