iOS
How to use NSCache in Swift
NSCache is a mutable dictionary that you could use to cache some data that are expensive to create, so it could improve your app performance. If memory is needed by other applications, it would remove some items from the cache, minimizing its memory footprint, then some values need to be