Nuke Documentation

Protocol Data​Caching

public protocol DataCaching  

Data cache.

DataCaching DataCaching DataCache DataCache DataCache->DataCaching

Types Conforming to Data​Caching

DataCache

An LRU disk cache that stores data in separate files.

Requirements

cached​Data(for:​)

func cachedData(for key: String) -> Data? 

Retrieves data from cache for the given key.

contains​Data(for:​)

func containsData(for key: String) -> Bool

Returns true if the cache contains data for the given key.

store​Data(_:​for:​)

func storeData(_ data: Data, for key: String) 

Stores data for the given key.

remove​Data(for:​)

func removeData(for key: String) 

Removes data for the given key.

remove​All()

func removeAll() 

Removes all items.