Kingfisher Documentation

Enumeration Image​Cache​Result

public enum ImageCacheResult  

Represents the getting image operation from the cache.

  • disk: The image can be retrieved from disk cache.

  • memory: The image can be retrieved memory cache.

  • none: The image does not exist in the cache.

Enumeration Cases

disk

case disk(KFCrossPlatformImage) 

The image can be retrieved from disk cache.

memory

case memory(KFCrossPlatformImage) 

The image can be retrieved memory cache.

none

case none

The image does not exist in the cache.

Properties

image

public var image: KFCrossPlatformImage?  

Extracts the image from cache result. It returns the associated Image value for .disk and .memory case. For .none case, nil is returned.

cache​Type

public var cacheType: CacheType  

Returns the corresponding CacheType value based on the result type of self.