Nuke Documentation

Protocol Image​Caching

public protocol ImageCaching: AnyObject  

In-memory image cache.

The implementation must be thread safe.

ImageCaching ImageCaching AnyObject AnyObject ImageCaching->AnyObject ImageCache ImageCache ImageCache->ImageCaching

Conforms To

AnyObject

Types Conforming to Image​Caching

ImageCache

An LRU memory cache.

Default Implementations

subscript(request:​)

subscript(request: ImageRequestConvertible) -> ImageContainer?  

A convenience API for getting an image for the given request.

Requirements

subscript(key:​)

subscript(key: ImageCacheKey) -> ImageContainer?  

Access the image cached for the given request.

remove​All()

func removeAll() 

Removes all caches items.