Response caching and memory cache
An image-heavy feed app keeps getting memory warnings. How should the response cache have been set up?
An image-heavy feed app keeps getting memory warnings. How should the response cache have been set up?
Split the cache into layers, HTTP cache (URLCache), memory cache, and disk cache, and put only downsampled images into the memory layer with a cost limit.
Performance and debuggingShort answerAdvanced
A photo editing app gets frequent memory warnings and sometimes gets killed. In what…
#nscache #memory-warning
NetworkingMultiple choiceBasics
Select all the statements that correctly describe how NSCache differs from Dictionary.
#nscache
NetworkingMultiple choiceExpert
A server response came with Cache-Control: max-age=60 and ETag: "abc" and was stored in…
#urlcache
NetworkingShort answerAdvanced
In a coding interview you're asked to build, in 30 minutes, an ImageManager that fetches…
#nscache