Just want to share my indignation. Maybe someone will advise something.
There is a class URLCache. As I understand it, this class does not provide any tools to perform actions when an object is about to be evicted or removed from the cache. No delegate, no override.
Thus, this class does not allow to control which objects are evicted from the cache. After all, the related class NSCache has NSCacheDelegate. Why URLCache doesn't have the same?
So, to control the operation of the cache, I will have to create my own cache class from scratch. Another oddity is that I can’t find 3rd party cache frameworks that allow to control events of eviction. Doesn't anyone care?