Protocol

NSCacheDelegate

The delegate of an NSCache object implements this protocol to perform specialized actions when an object is about to be evicted or removed from the cache.

Topics

Responding to Object Eviction

func cache(NSCache<AnyObject, AnyObject>, willEvictObject: Any)

Called when an object is about to be evicted or removed from the cache.

Relationships

Inherits From

See Also

Managing the Delegate

var delegate: NSCacheDelegate?

The cache’s delegate.