NSCache and background
问题 I've noticed that NSCache evicts all of its object when the application goes in background. is that the expected behaviour? is there a way to avoid it? I would expect it to evict objects when the device run out of memory not immediately when the app goes in background. Do you know any valid alternative? 回答1: In my case, that happened when objects stored in NSCache does not conform to NSDiscardableContent protocol. When I added the said protocol, eviction of objects when the app is entering